xref: /PHP-8.1/sapi/cli/tests/bug65275.phpt (revision 7c3e4872)
1--TEST--
2Bug #65275: Calling exit() in a shutdown function does not change the exit value in CLI
3--FILE--
4<?php
5
6$php = getenv('TEST_PHP_EXECUTABLE');
7exec($php . ' ' . __DIR__ . '/bug65275.inc', $output, $exit_status);
8var_dump($exit_status);
9
10?>
11--EXPECT--
12int(111)
13