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/tests/classes/ |
files >> //php-7.1.11/tests/classes/constants_basic_003.phpt |
--TEST-- Ensure class properties and constants can be defined in terms of constants that are not known at compile time. --FILE-- <?php include 'constants_basic_003.inc'; class B { public static $a = A::MY_CONST; public static $c = C::MY_CONST; const ca = A::MY_CONST; const cc = C::MY_CONST; } class C { const MY_CONST = "hello from C"; } var_dump(B::$a); var_dump(B::$c); var_dump(B::ca); var_dump(B::cc); ?> --EXPECTF-- string(12) "hello from A" string(12) "hello from C" string(12) "hello from A" string(12) "hello from C"y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`