From: Felipe Pena Date: Wed, 4 Jun 2008 18:32:56 +0000 (+0000) Subject: - New test X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1bbc5698c923ee19436ff58715464b3ff9cb241;p=php - New test --- diff --git a/Zend/tests/bug45180.phpt b/Zend/tests/bug45180.phpt new file mode 100644 index 0000000000..285543aaf0 --- /dev/null +++ b/Zend/tests/bug45180.phpt @@ -0,0 +1,61 @@ +--TEST-- +Testing callback formats within class method +--FILE-- +test(); + +$x::A(); + +foo::B(); + +$f = 'FOO'; + +$f::C(); + +$f::$f(); + +foo::$f(); + +?> +--EXPECT-- +__call: +string(3) "ABC" +__call: +string(3) "ABC" +__call: +string(3) "XYZ" +__call: +string(3) "WWW" +__call: +string(3) "ABC" +__callstatic: +string(1) "A" +__callstatic: +string(1) "B" +__callstatic: +string(1) "C" +__callstatic: +string(3) "FOO" +__callstatic: +string(3) "FOO"