cvs: ZendEngine2 /tests bug26698.phpt

From: Date: Sat, 27 Dec 2003 20:45:36 +0000
Subject: cvs: ZendEngine2 /tests bug26698.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2158@lists.php.net to get a copy of this message
helly Sat Dec 27 15:45:36 2003 EDT Added files: /ZendEngine2/tests bug26698.phpt Log: Add new test Index: ZendEngine2/tests/bug26698.phpt +++ ZendEngine2/tests/bug26698.phpt --TEST-- Bug #26698 (Thrown exceptions while evaluting argument to pass as parameter crash PHP) --FILE-- <?php class Object { function getNone() { throw new Exception('NONE'); } } class Proxy { function three($a, $b, $c) { } function callOne() { try { $res = new Object(); $this->three($res->getNone()); } catch(Exception $e) { echo 'Caught: '.$e->getMessage()."\n"; } } function callTwo() { try { $res = new Object(); $this->three(1, $res->getNone()); } catch(Exception $e) { echo 'Caught: '.$e->getMessage()."\n"; } } function callThree() { try { $res = new Object(); $this->three(1, 2, $res->getNone()); } catch(Exception $e) { echo 'Caught: '.$e->getMessage()."\n"; } } } $p = new Proxy(); $p->callOne(); $p->callTwo(); $p->callThree(); ?> ===DONE=== --EXPECT-- Caught: NONE Caught: NONE Caught: NONE ===DONE===

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