xref: /PHP-8.4/sapi/cli/tests/bug62294.phpt (revision dcc3255b)
1--TEST--
2Bug #62294: register_shutdown_function() does not handle exit code correctly
3--FILE--
4<?php
5
6$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
7exec($php . ' -n ' . escapeshellarg(__DIR__ . '/bug62294.inc'), $output, $exit_status);
8var_dump($exit_status);
9
10?>
11--EXPECT--
12int(255)
13