ZF-5778: Filtering messages which are not strings



Some log writers like the firebug one are capable of logging arrays, but Zend_Log_Filter_Message only accepts strings (by passing $event['message'] to preg_match() directly).

Proposed modification:

public function accept($event) { $message = $event['message']; if(is_array($event['message'])) { $message = var_export($message,TRUE); }

return preg_match($this->_regexp, $message) > 0;


Such that it won't throw the warning "preg_match() expects parameter 2 to be string, array given in /usr/share/httpd/ZendFramework-1.7.4/library/Zend/Log/Filter/Message.php"


Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.