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

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