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

Bug #12810 Firebug log driver causes script error in IE
Submitted: 2008-01-02 18:26 UTC
From: ieure Assigned: jon
Status: Closed Package: Log
PHP Version: 5.2.0 OS: Debian etch
Roadmaps: 1.9.15    
Subscription  


 [2008-01-02 18:26 UTC] ieure (Ian Eure)
Description: ------------ When I log messages with the Firebug log driver, I get script errors in IE. They take the form of: "Error: console is undefined" The problem is with the second part of the if() test. The first part (“'console' in window”) fails, so the second (“'firebug' in console”) runs. This doesn't really make sense, since the first test failed, so there is no console. I'm not sure why the test is done the way it is, so I'm not providing a patch. However, removing the second portion of the test and leaving it as “if ('console' in window)” works for me; IE doesn't complain, and I get messages in Firebug in Firefox. Expected result: ---------------- IE should not complain, but silently ignore the log messages. Actual result: -------------- IE complains about script errors.

Comments

 [2008-01-08 16:22 UTC] jon (Jon Parise)
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.