Home » Authentication » Auth » Bug #9944
Use of undefined constant PEAR_LOG_DEBUG
Details
| Submitted | 2007-01-25 15:57 UTC |
|---|---|
| From | berdir at php dot net |
| Assigned | aashley |
| Status | Closed |
| Package | Auth |
| PHP Version | 5.1.6 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2007-01-25 15:57 UTC] berdir at php dot net
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.
[2007-02-02 00:41 UTC] aashley at php dot net
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.