php-src/Zend/tests/bug60978.phpt
2012-03-02 03:25:41 +00:00

11 lines
183 B
PHP
Executable File

--TEST--
Bug #60978 (exit code incorrect)
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
exec($php . ' -n -r "exit(2);"', $output, $exit_code);
echo $exit_code;
?>
--EXPECT--
2