Multiple tests had to be changed to escape the arguments in shell commands. Some tests are skipped because they behave differently with spaces in the path versus without. One notable example of this is the hashbang test which does not work because spaces in hashbangs paths are not supported in Linux. Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz>
13 lines
292 B
PHP
13 lines
292 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_ESCAPED');
|
|
exec($php . ' ' . escapeshellarg(__DIR__ . '/bug65275.inc'), $output, $exit_status);
|
|
var_dump($exit_status);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(111)
|