php-8.0.30-src/sapi/cli/tests/bug65275.phpt

13 lines
268 B
PHP

--TEST--
Bug #65275: Calling exit() in a shutdown function does not change the exit value in CLI
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
exec($php . ' ' . __DIR__ . '/bug65275.inc', $output, $exit_status);
var_dump($exit_status);
?>
--EXPECT--
int(111)