joebeeson/referee — pull request #11 by jeremyharris (2012-10-18 18:57:28+00:00)
Title: Preventing handler from being set more than once

I had a weird issue where the handler was being set several times, due to the object being constructed, then the controller instantiation setting the error handler again. Then, when requestAction was called later in my view, it would set the handler *again*.

This caused issues that prevented the view from loading correctly, and from displaying/logging errors correctly. I unfortunately have no solid idea *why* it stopped working as I though that PHP would just use the latest error handler in the stack, which would always be Referee's.

For the life of me I couldn't figure out a way to write a test to prove this, so I understand if this doesn't get pulled. All tests pass.