mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
24 lines
489 B
Plaintext
24 lines
489 B
Plaintext
|
--TEST--
|
||
|
using invalid combinations of cmdline options
|
||
|
--SKIPIF--
|
||
|
<?php include "skipif.inc"; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$php = $_ENV['TEST_PHP_EXECUTABLE'];
|
||
|
|
||
|
var_dump(`$php -n -c -r 'echo hello;'`);
|
||
|
var_dump(`$php -a -r 'echo hello;'`);
|
||
|
var_dump(`$php -r 'echo hello;' -a`);
|
||
|
|
||
|
echo "Done\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
You cannot use both -n and -c switch. Use -h for help.
|
||
|
NULL
|
||
|
Either execute direct code, process stdin or use a file.
|
||
|
NULL
|
||
|
Either execute direct code, process stdin or use a file.
|
||
|
NULL
|
||
|
Done
|