1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00
Files
archived-php-src/sapi/cli/tests/009.phpt
Antony Dovgal 94f9dc1d8a use getenv()
2007-01-20 22:12:45 +00:00

24 lines
529 B
PHP

--TEST--
using invalid combinations of cmdline options
--SKIPIF--
<?php include "skipif.inc"; ?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`"$php" -n -c -r 'echo hello;'`);
var_dump(`"$php" -n -a -r 'echo hello;'`);
var_dump(`"$php" -n -r 'echo hello;' -a`);
echo "Done\n";
?>
--EXPECTF--
string(55) "You cannot use both -n and -c switch. Use -h for help.
"
string(57) "Either execute direct code, process stdin or use a file.
"
string(57) "Either execute direct code, process stdin or use a file.
"
Done