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/generators/ |
files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/Zend/tests/generators/throw_rethrow.phpt |
--TEST-- Generator::throw() where the generator throws a different exception --FILE-- <?php function gen() { echo "before yield\n"; try { yield; } catch (RuntimeException $e) { echo 'Caught: ', $e, "\n\n"; throw new LogicException('new throw'); } } $gen = gen(); var_dump($gen->throw(new RuntimeException('throw'))); ?> --EXPECTF-- before yield Caught: RuntimeException: throw in %s:%d Stack trace: #0 {main} Fatal error: Uncaught LogicException: new throw in %s:%d Stack trace: #0 [internal function]: gen() #1 %s(%d): Generator->throw(Object(RuntimeException)) #2 {main} thrown in %s on line %dy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`