mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
35 lines
496 B
PHP
35 lines
496 B
PHP
--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)
|
|
}
|
|
}
|