zendframework/zf2 — pull request #2267 by Domisys (2012-08-30 09:50:01+00:00)
Title: Don't use $ldap->getResource() if already in ErrorHandler is already started

$ldap->getResource() is often called in ldap_* function. Those are surronded by the ErrorHandler. But getResource() try to start the ErrorHandler. A Exception\LogicException is throwed.

Moving $ldap->getResource() outside the ErrorHandler::start/stop avoid this behaviour.