blob: 198c5c7dce13b6f6706e1eefd0b1a873beb3aefb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
Bug #68191: Broken reference across objects
--FILE--
<?php
$obj = new stdClass;
$obj->prop1 = 'abc';
$obj->prop2 =& $obj->prop1;
$obj->prop2 .= 'xyz';
var_dump($obj->prop1);
$obj->prop3 = 1;
$obj->prop4 =& $obj->prop3;
++$obj->prop4;
var_dump($obj->prop3);
?>
--EXPECT--
string(6) "abcxyz"
int(2)
|