xref: /PHP-7.4/sapi/cgi/tests/005.phpt (revision 782352c5)
1--TEST--
2using invalid combinations of cmdline options
3--SKIPIF--
4<?php
5
6if (substr(PHP_OS, 0, 3) == 'WIN') {
7	die ("skip not for Windows");
8}
9
10include "skipif.inc";
11?>
12--FILE--
13<?php
14
15include "include.inc";
16
17$php = get_cgi_path();
18reset_env_vars();
19
20var_dump(`$php -n -a -f 'wrong'`);
21var_dump(`$php -n -f 'wrong' -a`);
22
23echo "Done\n";
24?>
25--EXPECT--
26string(51) "No input file specified.
27Interactive mode enabled
28
29"
30string(51) "No input file specified.
31Interactive mode enabled
32
33"
34Done
35