]> granicus.if.org Git - php/commit
Fixed bug #79948
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 10 Aug 2020 08:28:13 +0000 (10:28 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 10 Aug 2020 09:15:16 +0000 (11:15 +0200)
commitee163161480f4196d618036728f4765de7139068
tree1356ef94a66f74844456ccbd23e823a2b9706cc8
parent1974522a2dd571a7ee4dd542e100379c1d450bf6
Fixed bug #79948

Make sure we don't execute further scripts if one of them encountered
an exit exception.

Also make sure that we free file handles that end up unused due to
an early abort in php_execute_scripts(), which turned up as an
issue in the added test case.

Finally, make use of EG(exit_status) in the places where we
zend_eval_string_ex, instead of unconditionally assigning exit
code 254. If an error occurs, the error handler will already set
exit status 255.
NEWS
Zend/tests/bug79948.inc [new file with mode: 0644]
Zend/tests/bug79948.phpt [new file with mode: 0644]
Zend/zend.c
Zend/zend_exceptions.c
sapi/cli/php_cli.c