summaryrefslogtreecommitdiff
path: root/Zend/tests/array_add_indirect.phpt
blob: 821cc475b94db64b13f4f0254ba668dabf477623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Array addition should not add INDIRECT elements
--FILE--
<?php

$x = 1;
$ary = ['y' => 1];
$ary += $GLOBALS;
var_dump($ary['x']);
$x = 2;
var_dump($ary['x']);

?>
--EXPECT--
int(1)
int(1)