xref: /PHP-7.4/Zend/tests/bug60978.phpt (revision 62b51668)
1--TEST--
2Bug #60978 (exit code incorrect)
3--SKIPIF--
4<?php
5	if ("cli" != php_sapi_name()) {
6		echo "skip CLI only";
7	}
8?>
9--FILE--
10<?php
11$php = getenv('TEST_PHP_EXECUTABLE');
12exec($php . ' -n -r "exit(2);"', $output, $exit_code);
13echo $exit_code;
14?>
15--EXPECT--
162
17