mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
- Fixed crash when zend_eval_string bailouts (-r 'a();')
Reported by: David Tajchreber
This commit is contained in:
parent
eeade7180a
commit
9424d255c9
1 changed files with 425 additions and 422 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue