You can clone with
No one assigned
If you build a \Zend\Log\Logger that uses a Zend\Log\Writer\Stream to write to a file and register it as the logger in \Zend\Log\Logger::registerErrorHandler you end having a bad error_handler since doWrite in Zend\Log\Writer\Stream uses Zend\StfdLib\ErrorHandler to catch error generated by fwrite. As Zend\StfdLib\ErrorHandler also registers an error_handler you end up trying to call restore_error_handler() from an error_handler function, which according to http://www.php.net/manual/en/function.restore-error-handler.php is impossible.
I will make a pull request on github including a test case and a possible fix.
This issue was ported from the ZF2 Jira Issue Tracker athttp://framework.zend.com/issues/browse/ZF2-541
Known GitHub users mentioned in the original message or comment:
This issue is resolved by the #2330.