/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
generators
/
finally
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/generators/finally/throw_yield.phpt
--TEST-- try { throw } finally { yield } --FILE-- <?php function foo($f, $t) { for ($i = $f; $i <= $t; $i++) { try { throw new Exception; } finally { yield $i; } } } foreach (foo(1, 5) as $x) { echo $x, "\n"; } ?> --EXPECTF-- 1 Fatal error: Uncaught Exception in %s:%d Stack trace: #0 %s(%d): foo(1, 5) #1 {main} thrown in %s on line %d
Copyright ©2k19 -
Hexid
|
Tex7ure