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/ext/standard/tests/array/ |
files >> //php-7.1.11/ext/standard/tests/array/compact_this.phpt |
--TEST-- compact() with object context --FILE-- <?php var_dump( (new class { function test(){ return compact('this'); } })->test() ); var_dump( (new class { function test(){ return compact([['this']]); } })->test() ); var_dump( (new class { function test(){ return (function(){ return compact('this'); })(); } })->test() ); ?> --EXPECT-- array(1) { ["this"]=> object(class@anonymous)#1 (0) { } } array(1) { ["this"]=> object(class@anonymous)#1 (0) { } } array(1) { ["this"]=> object(class@anonymous)#1 (0) { } }y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`