Browse Source

optimizer: don't crash on compiler error

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@316 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent
commit
792c39abc4
  1. 4
      optimizer.c

4
optimizer.c

@ -367,6 +367,10 @@ void xc_optimize(zend_op_array *op_array TSRMLS_DC) /* {{{ */
{
xc_compile_result_t cr;
if (!op_array) {
return;
}
xc_compile_result_init_cur(&cr, op_array TSRMLS_CC);
xc_apply_op_array(&cr, (apply_func_t) xc_undo_pass_two TSRMLS_CC);

Loading…
Cancel
Save