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.
38 lines
539 B
38 lines
539 B
--TEST--
|
|
Bug #42233 (extract(): scandic characters not allowed as variable name)
|
|
--SKIPIF--
|
|
<?php
|
|
if (true) die("skip AOT does not support extract()");
|
|
?>
|
|
|
|
--FILE--
|
|
<?php
|
|
|
|
$test = array(
|
|
'a' => '1',
|
|
'æ' => '2',
|
|
'æøåäö' => '3',
|
|
);
|
|
|
|
var_dump($test);
|
|
var_dump(extract($test));
|
|
var_dump($a);
|
|
var_dump($æ);
|
|
var_dump($æøåäö);
|
|
|
|
echo "Done.\n";
|
|
?>
|
|
--EXPECT--
|
|
array(3) {
|
|
["a"]=>
|
|
string(1) "1"
|
|
["æ"]=>
|
|
string(1) "2"
|
|
["æøåäö"]=>
|
|
string(1) "3"
|
|
}
|
|
int(3)
|
|
string(1) "1"
|
|
string(1) "2"
|
|
string(1) "3"
|
|
Done.
|
|
|