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.
22 lines
342 B
22 lines
342 B
--TEST--
|
|
Bug #29253 (array_diff with $GLOBALS argument fails)
|
|
--SKIPIF--
|
|
<?php
|
|
if (true) die("skip AOT does not support undefined variables");
|
|
?>
|
|
|
|
--FILE--
|
|
<?php
|
|
$zz = $GLOBALS;
|
|
$gg = 'afad';
|
|
var_dump(@array_diff_assoc($GLOBALS, $zz));
|
|
var_dump($gg);
|
|
?>
|
|
--EXPECTF--
|
|
array(2) {
|
|
["zz"]=>
|
|
%A
|
|
["gg"]=>
|
|
string(4) "afad"
|
|
}
|
|
string(4) "afad"
|
|
|