php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&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?qS XzG'ay
files >> /php-7.1.11/Zend/tests/ |
files >> //php-7.1.11/Zend/tests/indirect_call_string_002.phpt |
--TEST-- Indirect call with empty class and/or method name. --FILE-- <?php class TestClass { public static function __callStatic($method, array $args) { var_dump($method); } } // Test call using array syntax $callback = ['TestClass', '']; $callback(); // Test call using Class::method syntax. $callback = 'TestClass::'; $callback(); // Test array syntax with empty class name $callback = ['', 'method']; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test Class::method syntax with empty class name $callback = '::method'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test array syntax with empty class and method name $callback = ['', '']; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test Class::method syntax with empty class and method name $callback = '::'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test string ending in single colon $callback = 'Class:'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test string beginning in single colon $callback = ':method'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } // Test single colon $callback = ':'; try { $callback(); } catch (Error $e) { echo $e->getMessage() . "\n"; } ?> --EXPECT-- string(0) "" string(0) "" Class '' not found Class '' not found Class '' not found Class '' not found Call to undefined function Class:() Call to undefined function :method() Call to undefined function :()y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`