[wp-trac] [WordPress Trac] #21103: error_log() not called in wp-db.php when error_log setting is empty
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 28 17:43:09 UTC 2012
#21103: error_log() not called in wp-db.php when error_log setting is empty
--------------------------+-----------------------------
Reporter: apimlott | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 3.4
Severity: normal | Keywords:
--------------------------+-----------------------------
The fix for #5771 is still not right. If the error_log setting in php.ini
is empty (the default), errors should still be logged. (See
http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log.)
But in this case, ini_get('error_log') returns an empty string, so the
iswritable check in wp-includes/wp-db.php line 935 (WordPress 3.4) fails
and nothing is logged. Probably, there should be an test for empty string
just as there is for 'syslog'.
Patch attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21103>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list