1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/sapi/cli/tests/002-unix.phpt

25 lines
345 B
PHP

--TEST--
running code with -r
--SKIPIF--
<?php
include "skipif.inc";
if (substr(PHP_OS, 0, 3) == 'WIN') {
die ("skip not for Windows");
}
?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
var_dump(shell_exec(<<<SHELL
$php -n -r 'var_dump("hello");'
SHELL));
echo "Done\n";
?>
--EXPECT--
string(18) "string(5) "hello"
"
Done