/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug30725.phpt
--TEST-- Bug #30725 (PHP segfaults when an exception is thrown in getIterator() within foreach) --FILE-- <?php class Test implements IteratorAggregate { function getIterator() { throw new Exception(); } } try { $it = new Test; foreach($it as $v) { echo "Fail\n"; } echo "Wrong\n"; } catch(Exception $e) { echo "Caught\n"; } ?> --EXPECT-- Caught
Copyright ©2k19 -
Hexid
|
Tex7ure