From ae0a15b7cf762814ae7482215eb267ecaa326bac Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 12 Mar 2008 13:31:38 +0000 Subject: [PATCH] New test --- Zend/tests/objects_020.phpt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Zend/tests/objects_020.phpt 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) + } +} -- 2.50.1