blob: 335bd0c7929a7cd4186d54651615029cef84eb49 (
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 ValueError: escapeshellarg(): Argument #1 ($arg) must not contain any null bytes in %s:%d
Stack trace:
#0 %s(%d): escapeshellarg('hello\x00world')
#1 {main}
thrown in %s on line %d
|