php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /php-7.1.11/Zend/tests/
upload
files >> //php-7.1.11/Zend/tests/indirect_call_string_001.phpt

--TEST--
Indirect call with 'Class::method' syntax with class in namespace
--FILE--
<?php
namespace TestNamespace
{
    class TestClass
    {
        public static function staticMethod()
        {
            echo "Static method called!\n";
        }
        
        public static function staticMethodWithArgs($arg1, $arg2, $arg3)
        {
            printf("Static method called with args: %s, %s, %s\n", $arg1, $arg2, $arg3);
        }
    }
}

namespace CallNamespace
{
    // Test basic call using Class::method syntax.
    $callback = 'TestNamespace\TestClass::staticMethod';
    $callback();

    // Case should not matter.
    $callback = 'testnamespace\testclass::staticmethod';
    $callback();

    $args = ['arg1', 'arg2', 'arg3'];
    $callback = 'TestNamespace\TestClass::staticMethodWithArgs';

    // Test call with args.
    $callback($args[0], $args[1], $args[2]);

    // Test call with splat operator.
    $callback(...$args);
}
?>
--EXPECT--
Static method called!
Static method called!
Static method called with args: arg1, arg2, arg3
Static method called with args: arg1, arg2, arg3
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`