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

Bug #5550 PHP notices/warnings/errors are 1 file off in trace
Submitted: 2005-09-28 22:44 UTC
From: cellog Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 5.1.0 OS: n/a
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 28 = ?

 
 [2005-09-28 22:44 UTC] cellog
Description: ------------ with PHP 5.0 and earlier, debug_backtrace() returned a different array, so the 1st index was the last file on the stack, but in PHP 5.1, the 1st index is the next-to-last file on the stack, so PEAR's error reporting is off. The solution is to use the $file passed directly into error_handler() function in pearcmd.php instead of debug_backtrace()

Comments

 [2005-09-28 22:45 UTC] cellog
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.