mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
17 lines
263 B
PHP
17 lines
263 B
PHP
--TEST--
|
|
Bug #60978 (exit code incorrect)
|
|
--SKIPIF--
|
|
<?php
|
|
if ("cli" != php_sapi_name()) {
|
|
echo "skip CLI only";
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$php = getenv('TEST_PHP_EXECUTABLE');
|
|
exec($php . ' -n -r "exit(2);"', $output, $exit_code);
|
|
echo $exit_code;
|
|
?>
|
|
--EXPECT--
|
|
2
|