summaryrefslogtreecommitdiff
path: root/sapi/cli/tests/bug65275.phpt
blob: 1d595159965a6be8ea96ac2ef270f8dda61102c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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)