--TEST--
execute a file with -f
--SKIPIF--
--FILE--
';
file_put_contents($filename, $code);
if (defined("PHP_WINDOWS_VERSION_MAJOR")) {
var_dump(`$php -n -f "$filename"`);
} else {
var_dump(`$php -n -f "$filename" 2>/dev/null`);
}
var_dump(`$php -n -f "wrong"`);
@unlink($filename);
echo "Done\n";
?>
--EXPECTF--
string(%d) "
Fatal error: Uncaught Error: Cannot access private property test::$pri in %s004.test.php:8
Stack trace:
#0 {main}
thrown in %s004.test.php on line 8
"
string(25) "No input file specified.
"
Done