zendframework/zf2 — pull request #2109 by ethanhann (2012-08-05 04:11:09+00:00)
Title: Fix "ErrorHandler already started" exception

When calling Ldap->search, ErrorHandle::start is called in Ldap->search, and then again in Ldap->connect. This results in an "ErrorHandler already started" exception. Moving the $this->getResource call (which is ultimately responsible for the Ldap->connect call) before the ErrorHandle::start call in the Ldap->search function resolves this issue.