Skip to content

Instantly share code, notes, and snippets.

@heiglandreas
Created April 29, 2016 05:53
Show Gist options
  • Save heiglandreas/9cefbec499becbe49e5c9145488ff018 to your computer and use it in GitHub Desktop.
Save heiglandreas/9cefbec499becbe49e5c9145488ff018 to your computer and use it in GitHub Desktop.
Fix BC-Issue in Zend\Ldap 2.7.0
<?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