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  


 [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.