From: Felipe Pena Date: Thu, 17 Apr 2008 18:16:17 +0000 (+0000) Subject: - New test X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f2c31a171b9c2397fabb74e60e77c066fa2877f;p=php - New test --- diff --git a/Zend/tests/023.phpt b/Zend/tests/023.phpt new file mode 100644 index 0000000000..6f975c655b --- /dev/null +++ b/Zend/tests/023.phpt @@ -0,0 +1,45 @@ +--TEST-- +Testing variable variables as function name +--FILE-- +$$b()->$b()); + + +$a = 'strtoupper'; +$b = 'a'; +$c = 'b'; +$d = 'c'; +var_dump($$$$d('foo')); + +?> +--EXPECT-- +Test +foo! +string(4) "bar!" +string(3) "FOO"