php-src/Zend/tests/bug79948.phpt
Nikita Popov ee16316148 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.
2020-08-10 11:15:16 +02:00

11 lines
197 B
PHP

--TEST--
Bug #79948: Exit in auto-prepended file does not abort PHP execution
--INI--
auto_prepend_file={PWD}/bug79948.inc
--FILE--
<?php
echo "Should not be executed.\n";
?>
--EXPECT--
Exiting...