|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-09 11:48 UTC] sniper@php.net
[2004-02-10 11:01 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 24 17:00:01 2025 UTC |
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 ()