- Fixed crash when zend_eval_string bailouts (-r 'a();')

Reported by: David Tajchreber
This commit is contained in:
Felipe Pena 2011-06-25 13:15:24 +00:00
parent eeade7180a
commit 9424d255c9

View file

@ -668,6 +668,8 @@ static int do_cli(int argc, char **argv TSRMLS_DC) /* {{{ */
const char *param_error=NULL;
int hide_argv = 0;
zend_try {
CG(in_compilation) = 0; /* not initialized but needed for several options */
EG(uninitialized_zval_ptr) = NULL;
@ -1157,6 +1159,7 @@ static int do_cli(int argc, char **argv TSRMLS_DC) /* {{{ */
break;
}
}
} zend_end_try();
out:
if (exit_status == 0) {