Re: Don't silence fatal errors

From: Date: Sun, 02 Dec 2018 22:51:00 +0000
Subject: Re: Don't silence fatal errors
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-103541@lists.php.net to get a copy of this message
Hi Nikita, Nikita Popov wrote:
When the silencing operator @ is used, the intention is generally to silence expected warnings or notices. However, it currently also silences fatal errors. As fatal errors also abort request execution, the result will often be a hard to debug white screen of death. The most recent occurrence which motivated me to write this mail is https://bugs.php.net/bug.php?id=77205, but I've seen this play out multiple times already. I would like to propose to change the behavior of @ to only silence warnings, notices and other low-level diagnostics, but leave fatal errors intake. It's always been bizarre to me that @ can silence fatal errors, which has no practical application and makes using @ to silence a lower-level error potentially hszardous if its targeted function can also produce a fatal error.
Obviously, I'd be in favour of fixing this. :) -- Andrea Faulds https://ajf.me/

« previous php.internals (#103541) next »