From: Felipe Pena Date: Thu, 17 Apr 2008 18:16:34 +0000 (+0000) Subject: - New test X-Git-Tag: RELEASE_2_0_0b1~337 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2b47a525f1ea2d96960170a49214c975b1cc57c;p=php - New test --- diff --git a/Zend/tests/023.phpt b/Zend/tests/023.phpt new file mode 100644 index 0000000000..8912ad159b --- /dev/null +++ b/Zend/tests/023.phpt @@ -0,0 +1,50 @@ +--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" +--UEXPECT-- +Test +foo! +unicode(4) "bar!" +unicode(3) "FOO"