Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.18

Bug #964 PEAR_ERROR_EXCEPTION causes fatal error
Submitted: 2004-03-07 22:54 UTC
From: marthom at nortelnetworks dot com Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 5.0.0b4 (beta4) OS:
Roadmaps: (Not assigned)    
Subscription  


 [2004-03-07 22:54 UTC] marthom at nortelnetworks dot com
Description: ------------ PEAR_ERROR_EXCEPTION mode doesn't work, because PEAR_Error doesn't extend Exception. Reproduce code: --------------- require_once("PEAR.php"); PEAR::setErrorHandling(PEAR_ERROR_EXCEPTION); PEAR::raiseError("Hello World!"); Expected result: ---------------- The PEAR_Error class should be thrown as an exception. Actual result: -------------- [08-Mar-2004 09:50:26] PHP Fatal error: Exceptions must valid objects that are derived from class Exception in /usr/local/lib/php/PEAR.php(778) : eval()'d code on line 1

Comments

 [2004-03-07 23:00 UTC] marthom at nortelnetworks dot com
The OS makes no difference of course.
 [2004-04-03 06:20 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!