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