cvs: ZendEngine2(PHP_5_0) /tests bug30725.phpt

From: Date: Mon, 24 Jan 2005 19:24:19 +0000
Subject: cvs: ZendEngine2(PHP_5_0) /tests bug30725.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3331@lists.php.net to get a copy of this message
helly Mon Jan 24 14:24:19 2005 EDT Added files: (Branch: PHP_5_0) /ZendEngine2/tests bug30725.phpt Log: - MFH http://cvs.php.net/co.php/ZendEngine2/tests/bug30725.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug30725.phpt +++ ZendEngine2/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"; } ?> ===DONE=== ---EXPECT--- Caught ===DONE===

« previous php.zend-engine.cvs (#3331) next »