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/objects_027.phpt |
--TEST-- Testing 'new static;' calling parent method --FILE-- <?php class bar { public function show() { var_dump(new static); } } class foo extends bar { public function test() { parent::show(); } } $foo = new foo; $foo->test(); $foo::test(); call_user_func(array($foo, 'test')); call_user_func(array('foo', 'test')); ?> --EXPECTF-- object(foo)#%d (0) { } Deprecated: Non-static method foo::test() should not be called statically in %s on line %d Deprecated: Non-static method bar::show() should not be called statically in %s on line %d object(foo)#%d (0) { } object(foo)#%d (0) { } Deprecated: %son-static method foo::test() should not be called statically in %s on line %d Deprecated: Non-static method bar::show() should not be called statically in %s on line %d object(foo)#%d (0) { }y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`