cvs: ZendEngine2(PHP_5_0) /tests bug32252.phpt

From: Date: Tue, 03 May 2005 12:54:11 +0000
Subject: cvs: ZendEngine2(PHP_5_0) /tests bug32252.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3640@lists.php.net to get a copy of this message
helly Tue May 3 08:54:11 2005 EDT Added files: (Branch: PHP_5_0) /ZendEngine2/tests bug32252.phpt Log: - Add 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 (#3640) next »