mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
c439f1fa6a
The primary issue was already resolved in 7c3e487289,
but the particular example used in this bug report ran into an
additional issue on PHP 8, because I forgot to drop a number of
zend_bailout calls when switch require failure to throw.
13 lines
257 B
PHP
13 lines
257 B
PHP
--TEST--
|
|
Bug #62294: register_shutdown_function() does not handle exit code correctly
|
|
--FILE--
|
|
<?php
|
|
|
|
$php = getenv('TEST_PHP_EXECUTABLE');
|
|
exec($php . ' ' . __DIR__ . '/bug62294.inc', $output, $exit_status);
|
|
var_dump($exit_status);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(255)
|