blob: 9b40db0de2bb1e0170f2aec109ab8ba510951729 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
--TEST--
Accessing members of standard object through of variable variable
--FILE--
<?php
error_reporting(E_ALL);
$test = 'stdclass';
$$test->a =& $$test;
$$test->a->b[] = 2;
var_dump($$test);
?>
--EXPECTF--
Strict Standards: Creating default object from empty value in %s on line %d
object(stdClass)#1 (2) {
[u"a"]=>
&object(stdClass)#1 (2) {
[u"a"]=>
*RECURSION*
[u"b"]=>
array(1) {
[0]=>
int(2)
}
}
[u"b"]=>
array(1) {
[0]=>
int(2)
}
}
|