Changeset 993 for trunk/submodules/xc_disassembler.c
- Timestamp:
- 2012-07-18T10:27:29+02:00 (10 months ago)
- File:
-
- 1 edited
-
trunk/submodules/xc_disassembler.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/submodules/xc_disassembler.c
r987 r993 119 119 120 120 zval *output; 121 } xc_dasm_sandboxed_t; /* {{{ */ 122 123 zend_op_array *xc_dasm_sandboxed(void *data TSRMLS_DC) 121 } xc_dasm_sandboxed_t; /* }}} */ 122 zend_op_array *xc_dasm_sandboxed(void *data TSRMLS_DC) /* {{{ */ 124 123 { 125 124 zend_bool catched = 0; … … 189 188 } 190 189 /* }}} */ 190 191 /* {{{ proto array xcache_dasm_file(string filename) 192 Disassemble file into opcode array by filename */ 193 PHP_FUNCTION(xcache_dasm_file) 194 { 195 char *filename; 196 int filename_len; 197 198 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { 199 return; 200 } 201 if (!filename_len) RETURN_FALSE; 202 203 xc_dasm_file(return_value, filename TSRMLS_CC); 204 } 205 /* }}} */ 206 /* {{{ proto array xcache_dasm_string(string code) 207 Disassemble php code into opcode array */ 208 PHP_FUNCTION(xcache_dasm_string) 209 { 210 zval *code; 211 212 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &code) == FAILURE) { 213 return; 214 } 215 xc_dasm_string(return_value, code TSRMLS_CC); 216 } 217 /* }}} */
Note: See TracChangeset
for help on using the changeset viewer.

