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/Zend/tests/traits/ |
files >> //opt/php-7.0.1/Zend/tests/traits/bug55554b.phpt |
--TEST-- Bug #55137 (Legacy constructor not registered for class) --FILE-- <?php trait TConstructor { public function foo() { echo "foo executed\n"; } public function bar() { echo "bar executed\n"; } } class OverridingIsSilent1 { use TConstructor { foo as __construct; } public function __construct() { echo "OverridingIsSilent1 __construct\n"; } } $o = new OverridingIsSilent1; class OverridingIsSilent2 { use TConstructor { foo as OverridingIsSilent2; } public function OverridingIsSilent2() { echo "OverridingIsSilent2 OverridingIsSilent2\n"; } } $o = new OverridingIsSilent2; class ReportCollision { use TConstructor { bar as ReportCollision; foo as __construct; } } echo "ReportCollision: "; $o = new ReportCollision; --EXPECTF-- OverridingIsSilent1 __construct Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; OverridingIsSilent2 has a deprecated constructor in %s on line %d OverridingIsSilent2 OverridingIsSilent2 Fatal error: ReportCollision has colliding constructor definitions coming from traits in %s on line %dy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`