From: Felipe Pena Date: Wed, 4 Jun 2008 18:34:12 +0000 (+0000) Subject: - New test X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1595 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=750c42aecb81092abfb360c50b69e1a0eb2bfbfe;p=php - New test --- diff --git a/Zend/tests/bug45180.phpt b/Zend/tests/bug45180.phpt new file mode 100644 index 0000000000..887a159881 --- /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: +unicode(3) "ABC" +__call: +unicode(3) "ABC" +__call: +unicode(3) "XYZ" +__call: +unicode(3) "WWW" +__call: +unicode(3) "ABC" +__callstatic: +unicode(1) "A" +__callstatic: +unicode(1) "B" +__callstatic: +unicode(1) "C" +__callstatic: +unicode(3) "FOO" +__callstatic: +unicode(3) "FOO"