From: Felipe Pena Date: Wed, 12 Mar 2008 13:31:38 +0000 (+0000) Subject: New test X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~606 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae0a15b7cf762814ae7482215eb267ecaa326bac;p=php New test --- diff --git a/Zend/tests/objects_020.phpt b/Zend/tests/objects_020.phpt new file mode 100644 index 0000000000..b7c709f320 --- /dev/null +++ b/Zend/tests/objects_020.phpt @@ -0,0 +1,33 @@ +--TEST-- +Accessing members of standard object through of variable variable +--FILE-- +a =& $$test; +$$test->a->b[] = 2; + +var_dump($$test); + +?> +--EXPECT-- +object(stdClass)#1 (2) { + ["a"]=> + &object(stdClass)#1 (2) { + ["a"]=> + *RECURSION* + ["b"]=> + array(1) { + [0]=> + int(2) + } + } + ["b"]=> + array(1) { + [0]=> + int(2) + } +}