Re: Deprecation of the Error Control Operator (@ symbol)
| From: | Dennis Birkholz | Date: | Thu, 31 Dec 2015 15:41:50 +0000 |
| Subject: | Re: Deprecation of the Error Control Operator (@ symbol) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89942@lists.php.net to get a copy of this message | ||
Hi all,
Am 31.12.2015 um 15:52 schrieb Junade Ali:
> I am looking to submit an RFC in order to remove the error suppression
> operator in PHP, namely the @ symbol.
before you can deprecate the @ operator, there is a lot of work to do
beforehand. A lot of functions print warnings when they fail (in
addition to returning false). All these warnings have to be removed and
put into the matching error()/errno() functions. Before that there is no
way to remove the @ operator. Otherwise you have to disable error
reporting for warnings and that would be far worse than usage of @
currently is.
Greets
Dennis