xref: /PHP-8.1/sapi/cli/tests/009.phpt (revision 959e5787)
1--TEST--
2using invalid combinations of cmdline options
3--EXTENSIONS--
4readline
5--SKIPIF--
6<?php include "skipif.inc"; ?>
7--FILE--
8<?php
9
10$php = getenv('TEST_PHP_EXECUTABLE');
11
12var_dump(`$php -n -a -r "echo hello;"`);
13var_dump(`$php -n -r "echo hello;" -a`);
14
15echo "Done\n";
16?>
17--EXPECT--
18string(57) "Either execute direct code, process stdin or use a file.
19"
20string(57) "Either execute direct code, process stdin or use a file.
21"
22Done
23