zendframework/zf2 — pull request #2822 by guice (2012-10-22 17:55:19+00:00)
Title: Added the ability for FirePhp to understand 'extras' passed to \Zend\Log

FirePhp never understood the 'extra' data that get passed in. When using the error handler options, this became necessary: "Invalid argument supplied for foreach()" is impossible to debug without knowing where it came from; this data was supplied in the 'extra' data.

This update uses the built-in FirePhp function of line, and label, to add the 'extra' data (basic dump) to the $line, and moving $event['message'] into the $label field.

In the event there are no extras, $event['message'] remains in the $line (pure aesthetics reason: so message isn't "message:" [with the colon]).

$label was not added to DEBUG due to its "trace" usage which already uses $extra['message'] as a label.