From: Felipe Pena Date: Wed, 12 Mar 2008 13:32:27 +0000 (+0000) Subject: New test X-Git-Tag: RELEASE_2_0_0a1~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cebb3c7a5dd786c3b5c61a072bfb571fd1731cd;p=php New test --- diff --git a/Zend/tests/objects_020.phpt b/Zend/tests/objects_020.phpt new file mode 100644 index 0000000000..c6df1d60aa --- /dev/null +++ b/Zend/tests/objects_020.phpt @@ -0,0 +1,51 @@ +--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) + } +} +--UEXPECT-- +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) + } +}