mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
14 lines
257 B
PHP
14 lines
257 B
PHP
--TEST--
|
|
Bug #76383: array_map on $GLOBALS returns IS_INDIRECT
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = 1;
|
|
array_map(function($x) use (&$lastval) { $lastval = $x; }, $GLOBALS);
|
|
var_dump(gettype($lastval), $lastval); // will contain $a
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(7) "integer"
|
|
int(1)
|