We're getting a Headers and client library minor version mismatch
message and we have a path to resolving the actual warning, but for now we need to suppress it.
But! We need to keep all other warnings.
So, is there a way to suppress this single error message?
You can use set_error_handler
and check for the specific message, then just return false in cases where you want the use default error handling
E.G
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
if (false === strpos($errstr, 'Headers and client library minor version mismatch')) {
return false;
}
});
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments