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.
30 lines
488 B
30 lines
488 B
--TEST--
|
|
Test extract() function (variation 8)
|
|
--SKIPIF--
|
|
<?php
|
|
if (true) die("skip AOT does not support extract()");
|
|
?>
|
|
|
|
--FILE--
|
|
<?php
|
|
|
|
/* To show variables with numerical prefixes cannot be extracted */
|
|
$var["i"] = 1;
|
|
$var["j"] = 2;
|
|
$var["k"] = 3;
|
|
echo "\n*** Testing for Numerical prefixes ***\n";
|
|
var_dump(extract($var));
|
|
|
|
$var1["m"] = 1;
|
|
$var1[2] = 2;
|
|
$var1[] = 3;
|
|
var_dump ( extract($var1));
|
|
|
|
echo "\nDone";
|
|
?>
|
|
--EXPECT--
|
|
*** Testing for Numerical prefixes ***
|
|
int(3)
|
|
int(1)
|
|
|
|
Done
|
|
|