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.
19 lines
422 B
19 lines
422 B
--TEST--
|
|
Test extract() function - error condition - Invalid prefix.
|
|
--SKIPIF--
|
|
<?php
|
|
if (true) die("skip AOT does not support extract()");
|
|
?>
|
|
|
|
--FILE--
|
|
<?php
|
|
$a = ["1" => "one", "2" => "two", "3" => "three", "4" => "four", "5" => "five"];
|
|
|
|
try {
|
|
extract($a, EXTR_PREFIX_ALL, '85bogus');
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
extract(): Argument #3 ($prefix) must be a valid identifier
|
|
|