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

Bug #9944 Use of undefined constant PEAR_LOG_DEBUG
Submitted: 2007-01-25 15:57 UTC
From: berdir at php dot net Assigned: aashley
Status: Closed Package: Auth (version 1.5.0RC1)
PHP Version: 5.1.6 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-01-25 15:57 UTC] berdir at php dot net (Sascha Grossenbacher)
Description: ------------ If Log.php is not (or after $auth-start()) included, I get the following error: Use of undefined constant PEAR_LOG_DEBUG - assumed 'PEAR_LOG_DEBUG' in /usr/share/php/Auth.php at line 478 Including Log.php on every Request is great overhead, a better solution would be an own constant, like AUTH_LOG_DEBUG, which has the same value as PEAR_LOG_DEBUG.

Comments

 [2007-02-02 00:41 UTC] aashley at php dot net (Adam Ashley)
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. yeah Log.php is only included when logging is enabled which is why the constants are undefined. I've switched it over to using local constants.