1--TEST--
2Test escapeshellcmd() string with \0 bytes
3--FILE--
4<?php
5escapeshellcmd("hello\0world");
6
7?>
8===DONE===
9--EXPECTF--
10Fatal error: Uncaught ValueError: escapeshellcmd(): Argument #1 ($command) must not contain any null bytes in %s:%d
11Stack trace:
12#0 %s(%d): escapeshellcmd('hello\x00world')
13#1 {main}
14  thrown in %s on line %d
15