2006-11-24 13:33:38 +00:00
|
|
|
--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;'`);
|
2006-12-04 17:48:52 +00:00
|
|
|
var_dump(`$php -n -a -r 'echo hello;'`);
|
|
|
|
var_dump(`$php -n -r 'echo hello;' -a`);
|
2006-11-24 13:33:38 +00:00
|
|
|
|
|
|
|
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
|