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.
18 lines
334 B
18 lines
334 B
--TEST--
|
|
parse_str() rejects null bytes
|
|
--SKIPIF--
|
|
<?php
|
|
echo 'skip parse_str() null byte ValueError is not implemented in AOT';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
parse_str("a=1\0&b=2", $result);
|
|
} catch (ValueError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
parse_str(): Argument #1 ($string) must not contain any null bytes
|
|
|