Ignore undefined indexes E_NOTICE

This commit is contained in:
fbsanchez 2021-07-22 10:59:19 +02:00
parent 32210ee7a3
commit 52059661a4
1 changed files with 4 additions and 0 deletions

View File

@ -1433,6 +1433,10 @@ class Client
error_reporting(E_ALL ^ E_NOTICE); error_reporting(E_ALL ^ E_NOTICE);
set_error_handler( set_error_handler(
function ($errno, $errstr) { function ($errno, $errstr) {
if (preg_match('/Undefined index/', $errstr) > 1) {
return;
}
throw new \Exception($errstr, $errno); throw new \Exception($errstr, $errno);
} }
); );