php-src/Zend/tests/bug60978.phpt
2015-03-24 22:02:28 +01:00

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