zendframework/zf2 — pull request #2370 by lowcoders (2012-09-16 11:01:57+00:00)
Title: Error handling in AbstractWriter::write using Zend\Stdlib\ErrorHandler

Generalizes the use of Zend\Stdlib\ErrorHandler in all concrete writers
while at the same allowing to turn off that feature by calling
setConvertWriteErrorsToExceptions on any instance (which makes it safe
to use any Writer inside a custom error handler).

This is a follow up of a previous pull request https://github.com/zendframework/zf2/pull/2330 and makes it possible to avoid running into the issue reported on JIRA http://framework.zend.com/issues/browse/ZF2-541