From 55eabb4b69b104f38c382db425eb3df27dfb40db Mon Sep 17 00:00:00 2001 From: zxin <14545600+NHZEX@users.noreply.github.com> Date: Wed, 20 Mar 2024 18:24:31 +0800 Subject: [PATCH] =?UTF-8?q?Update:=20=E4=BC=98=E5=8C=96=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8D=95=E8=8E=B7=E5=A4=84=E7=90=86=20(#682)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Log/ErrorLog.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Log/ErrorLog.php b/src/Log/ErrorLog.php index 56219de648..444d030907 100644 --- a/src/Log/ErrorLog.php +++ b/src/Log/ErrorLog.php @@ -46,6 +46,10 @@ public function register(): void */ public function onError(int $errno, string $errstr, string $errfile, int $errline): void { + if (0 === (error_reporting() & $errno)) + { + return; + } if ($this->exceptionLevel & $errno) { throw new \ErrorException($errstr, 0, $errno, $errfile, $errline);