#27186 [Opn->Bgs]: Uncaught exception causes segfault when extending the Exception class.

From: Date: Mon, 09 Feb 2004 16:48:48 +0000
Subject: #27186 [Opn->Bgs]: Uncaught exception causes segfault when extending the Exception class.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-54623@lists.php.net to get a copy of this message
ID: 27186 Updated by: sniper@php.net Reported By: tress at b0g dot org -Status: Open +Status: Bogus Bug Type: Zend Engine 2 problem Operating System: FreeBSD 4.9-STABLE PHP Version: 5.0.0b3 (beta3) New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Same backtrace (with latest CVS) as with #26698 Previous Comments: ------------------------------------------------------------------------ [2004-02-08 18:10:04] tress at b0g dot org Description: ------------ Uncaught exception causes segfault when extending the Exception class and $msg is an integer. Reproduce code: --------------- <?php class test { function __construct() { throw new err(1); } } class err extends Exception { function __construct($msg) { //parent::Exception(); // Fatal error: Call to undefined method exception::exception() in test.php $this->message=$msg; } } $t=new test; ?> Expected result: ---------------- Fatal error: Uncaught exception 'err' with message '1' in test.php:8 Stack trace: #0 test.php(): test->__construct() #1 {main} thrown in test.php Actual result: -------------- #0 0x28333164 in zif_reflection_extension_getName (ht=135174572, return_value=0x0, this_ptr=0xbfbffa30, return_value_used=134639035) at /usr/local/php5/Zend/zend_reflection_api.c:2861 #1 0x8066deb in ap_clear_pool () #2 0x8066e6b in ap_destroy_pool () #3 0x8066dd7 in ap_clear_pool () #4 0x8066e6b in ap_destroy_pool () #5 0x8075c00 in clean_parent_exit () #6 0x807898f in standalone_main () #7 0x8078ee0 in main () #8 0x804ef62 in _start () ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27186&edit=1

« previous php.bugs (#54623) next »