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

Bug #293 [Patch] PEAR_Error not calling static method callbacks for error-handler
Submitted: 2003-11-25 12:26 UTC
From: alan at caint dot com Assigned: cellog
Status: Closed Package: PEAR
PHP Version: Irrelevant OS: N/A
Roadmaps: (Not assigned)    
Subscription  


 [2003-11-25 12:26 UTC] alan at caint dot com
Description: ------------ If $this->callback is an array PEAR_Error only checks that the first element is an object. Patch uses is_callable() to check for valid callback. See: http://news.php.net/article.php?group=php.pear.dev&article=23777 Reproduce code: --------------- <?php class ErrHandler { function handleStaticErr($error) { echo 'Static: '. $error->getMessage(); } } PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array('ErrHandler', 'handleStaticErr')); PEAR::raiseError('Test Error'); ?> Expected result: ---------------- Output ====== Static: Test Error Actual result: -------------- Output ======

Comments

 [2003-11-26 15:08 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!