We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10591c9 commit 2dd463fCopy full SHA for 2dd463f
1 file changed
sapi/cli/tests/gh20871.phpt
@@ -9,10 +9,21 @@ $php = getenv('TEST_PHP_EXECUTABLE_ESCAPED');
9
exec("$php -d 'foo=bar=asd' -r \"echo 'hello' . PHP_EOL;\" 2>&1", $output, $exit_code);
10
print_r($output);
11
12
+echo "\n";
13
+
14
+exec("$php -d 'foo=bar!asd' -r \"echo 'world' . PHP_EOL;\" 2>&1", $output2, $exit_code2);
15
+print_r($output2);
16
17
?>
18
--EXPECTF--
19
Array
20
(
21
[0] => PHP: syntax error, unexpected '=' in -d option on line 0
22
[1] => hello
23
)
24
25
+Array
26
+(
27
+ [0] => PHP: syntax error, unexpected '!' in -d option on line 0
28
+ [1] => world
29
+)
0 commit comments