mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
Make EG(exit_status) the single source of truth for the exit status, instead of having two variables that we cannot really keep synchronized.
13 lines
268 B
PHP
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)
|