summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72543_3.phpt
blob: 3835fafaa327c9be3d464fc4559b13c8269fa1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #72543.3 (different references behavior comparing to PHP 5)
--FILE--
<?php
$x = new stdClass;
$x->a = 1;
$ref =& $x->a;
unset($ref);
var_dump($x->a + ($x->a = 2));
?>
--EXPECT--
int(3)