TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
347 B

--TEST--
Bug #40915 (addcslashes unexpected behavior with binary input)
--FILE--
<?php
$str = "a\000z";
var_dump(addslashes($str));
var_dump(addcslashes($str, ""));
var_dump(addcslashes($str, "\000z"));
var_dump(addcslashes($str, "z"));
echo "Done\n";
?>
--EXPECTF--
string(4) "a\0z"
string(3) "a%0z"
string(7) "a\000\z"
string(4) "a%0\z"
Done