13 lines
198 B
Plaintext
13 lines
198 B
Plaintext
|
|
--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)
|