mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
ee16316148
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.
11 lines
197 B
PHP
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...
|