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 >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/Zend/tests/ |
files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/Zend/tests/dereference_011.phpt |
--TEST-- Testing array dereference with chaining --FILE-- <?php error_reporting(E_ALL); class foo { public $arr; public function &a() { return $this->arr; } } $foo = new foo; $h = &$foo->a(); $h[] = 1; $h[] = $foo; var_dump($foo->a()[1]->arr[1]->a()[1]->arr[1]->arr[0]); var_dump($foo->a()[1]); var_dump($foo->a()[1]->arr[1]); ?> --EXPECTF-- int(1) object(foo)#%d (1) { ["arr"]=> &array(2) { [0]=> int(1) [1]=> *RECURSION* } } object(foo)#%d (1) { ["arr"]=> &array(2) { [0]=> int(1) [1]=> *RECURSION* } }y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`