mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
13 lines
198 B
PHP
13 lines
198 B
PHP
--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)
|