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/bug61025.phpt |
--TEST-- Bug #61025 (__invoke() visibility not honored) --FILE-- <?php Interface InvokeAble { static function __invoke(); } class Bar { private function __invoke() { return __CLASS__; } } $b = new Bar; echo $b(); echo $b->__invoke(); ?> --EXPECTF-- Warning: The magic method __invoke() must have public visibility and cannot be static in %sbug61025.php on line %d Warning: The magic method __invoke() must have public visibility and cannot be static in %sbug61025.php on line %d Bar Fatal error: Uncaught Error: Call to private method Bar::__invoke() from context '' in %sbug61025.php:%d Stack trace: #0 {main} thrown in %sbug61025.php on line %dy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`