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 >> /proc/self/root/php-7.1.11/tests/classes/ |
files >> //proc/self/root/php-7.1.11/tests/classes/constants_basic_006.phpt |
--TEST-- Ensure class constants are not evaluated when a class is looked up to resolve inheritance during runtime. --FILE-- <?php class C { const X = E::A; public static $a = array(K => D::V, E::A => K); } eval('class D extends C { const V = \'test\'; }'); class E extends D { const A = "hello"; } define('K', "nasty"); var_dump(C::X, C::$a, D::X, D::$a, E::X, E::$a); ?> --EXPECTF-- string(5) "hello" array(2) { ["nasty"]=> string(4) "test" ["hello"]=> string(5) "nasty" } string(5) "hello" array(2) { ["nasty"]=> string(4) "test" ["hello"]=> string(5) "nasty" } string(5) "hello" array(2) { ["nasty"]=> string(4) "test" ["hello"]=> string(5) "nasty" }y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`