cvs: ZendEngine2 /tests bug32252.phpt

From: Date: Fri, 11 Mar 2005 02:32:10 +0000
Subject: cvs: ZendEngine2 /tests bug32252.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3476@lists.php.net to get a copy of this message
helly Thu Mar 10 21:32:10 2005 EDT Added files: /ZendEngine2/tests bug32252.phpt Log: - Add new test http://cvs.php.net/co.php/ZendEngine2/tests/bug32252.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug32252.phpt +++ ZendEngine2/tests/bug32252.phpt --TEST-- Bug #32252 (Segfault when offsetSet throws an Exception (only without debug)) --FILE-- <?php class Test implements ArrayAccess { function offsetExists($offset) { echo __METHOD__ . "($offset)\n"; return false; } function offsetGet($offset) { echo __METHOD__ . "($offset)\n"; return null; } function offsetSet($offset, $value) { echo __METHOD__ . "($offset, $value)\n"; throw new Exception("Ooops"); } function offsetUnset($offset) { echo __METHOD__ . "($offset)\n"; } } $list = new Test(); try { $list[-1] = 123; } catch (Exception $e) { echo "CAUGHT\n"; } ?> ===DONE=== --EXPECT-- Test::offsetSet(-1, 123) CAUGHT ===DONE===

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