Created
April 29, 2016 05:53
-
-
Save heiglandreas/9cefbec499becbe49e5c9145488ff018 to your computer and use it in GitHub Desktop.
Fix BC-Issue in Zend\Ldap 2.7.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme; | |
class ErrorHandler implements Zend\Ldap\ErrorHandlerInterface | |
{ | |
public function startErrorHandling($level = E_WARNING) | |
{ | |
set_error_handler(function($errNo, $errMsg){}); | |
} | |
public function stopErrorHandling() | |
{ | |
restore_error_handler(); | |
} | |
} | |
\Zend\Ldap\ErrorHandler::setErrorHandler(new ErrorHandler()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment