error_log() not called in wp-db.php when error_log setting is empty
|Reported by:||apimlott||Owned by:||nacin|
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'.
Change History (6)
- Keywords 2nd-opinion added
- Milestone changed from Awaiting Review to 3.5