php-src/Zend/tests/objects_020.phpt
Steph Fox 6d8760677d - killed off UEXPECT
- altered EXPECT for parser errors. This may or may not be a Good Thing.
2008-05-26 14:33:44 +00:00

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)
}
}