summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/escapeshellarg_bug71039.phpt
blob: b6bc828a87bef55acd75e81a2b2697a63c1b28ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Test escapeshellarg() string with \0 bytes
--FILE--
<?php
escapeshellarg("hello\0world");

?>
===DONE===
--EXPECTF--
Fatal error: Uncaught TypeError: Input string contains NULL bytes in %s:%d
Stack trace:
#0 %s(%d): escapeshellarg('hello\x00world')
#1 {main}
  thrown in %s on line %d