Browse Source

disassembler: wrong parameter calling destroy_op_array which makes building on php4 zts fails

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@289 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
fee2bf3c7c
  1. 8
      disassembler.c

8
disassembler.c

@ -100,7 +100,11 @@ void xc_dasm_string(zval *dst, zval *source TSRMLS_DC) /* {{{ */
/* free */
efree(eval_name);
#ifdef ZEND_ENGINE_2
destroy_op_array(op_array TSRMLS_CC);
#else
destroy_op_array(op_array);
#endif
efree(op_array);
xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
return;
@ -140,7 +144,11 @@ void xc_dasm_file(zval *dst, const char *filename TSRMLS_DC) /* {{{ */
xc_dasm(dst, op_array TSRMLS_CC);
/* free */
#ifdef ZEND_ENGINE_2
destroy_op_array(op_array TSRMLS_CC);
#else
destroy_op_array(op_array);
#endif
efree(op_array);
xc_sandbox_free(&sandbox, 0 TSRMLS_CC);
zval_dtor(zfilename);

Loading…
Cancel
Save