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 >> /opt/php-7.0.1/ext/reflection/tests/ |
files >> //opt/php-7.0.1/ext/reflection/tests/bug30148.phpt |
--TEST-- Reflection Bug #30148 (ReflectionMethod->isConstructor() fails for inherited classes) --FILE-- <?php class Root { function Root() {} } class Base extends Root { function __construct() {} } class Derived extends Base { } $a = new ReflectionMethod('Root','Root'); $b = new ReflectionMethod('Base','Root'); $c = new ReflectionMethod('Base','__construct'); $d = new ReflectionMethod('Derived','Root'); $e = new ReflectionMethod('Derived','__construct'); var_dump($a->isConstructor()); var_dump($b->isConstructor()); var_dump($c->isConstructor()); var_dump($d->isConstructor()); var_dump($e->isConstructor()); ?> ===DONE=== --EXPECTF-- Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Root has a deprecated constructor in %s on line %d bool(true) bool(false) bool(true) bool(false) bool(true) ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`