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