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/Zend/tests/generators/ |
files >> //php-7.1.11/Zend/tests/generators/no_foreach_var_leaks.phpt |
--TEST-- foreach() (and other) variables aren't leaked on premature close --FILE-- <?php function gen(array $array) { foreach ($array as $value) { yield $value; } } $gen = gen(['Foo', 'Bar']); var_dump($gen->current()); // generator is closed here, without running SWITCH_FREE ?> --EXPECT-- string(3) "Foo"y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`