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/bug46246.phpt |
--TEST-- Bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method()) --FILE-- <?php class A { private function Test() { echo 'Hello from '.get_class($this)."\n"; } public function call($method, $args = array()) { $this->Test(); $this->$method(); call_user_func(array($this, $method)); } } class B extends A { protected function Test() { echo 'Overridden hello from '.get_class($this)."\n"; } } $a = new A; $b = new B; $a->call('Test'); $b->call('Test'); ?> --EXPECT-- Hello from A Hello from A Hello from A Hello from B Hello from B Hello from By~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`