summaryrefslogtreecommitdiff
path: root/sapi/cli/tests/009.phpt
blob: d476f8d64496002cd5594d96789ead56e90b3d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--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--	
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