php-src/ext/standard/tests/general_functions/escapeshellcmd_bug71039.phpt

10 lines
207 B
PHP

--TEST--
Test escapeshellcmd() string with \0 bytes
--FILE--
<?php
escapeshellcmd("hello\0world");
?>
===DONE===
--EXPECTF--
Fatal error: escapeshellcmd(): Input string contains NULL bytes in %s on line %d