Re: [RFC][DISCUSSION] Deprecate the backtick operator
| From: | Thomas Hruska | Date: | Mon, 12 Feb 2018 06:19:28 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Deprecate the backtick operator | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101834@lists.php.net to get a copy of this message | ||
On 2/11/2018 9:45 PM, Michael Morris wrote:
If we are going to go about removing stupid operators in PHP, the current use of @ as an error suppression operator is much higher on the list since encourages people to write bad code by sweeping problems under the rug Or people don't like how PHP currently handles errors/warnings/notices and would prefer to handle the messages themselves in the same context of the running code (i.e. not in a global handler). I'd rather see the @ operator become a "most recent" message collector instead of purely an error suppressor. That way, the current behavior wouldn't change for existing applications but users could start taking advantage of whatever associated functionality is added.There are also significant security issues that arise when NOT using the @ operator. -- Thomas Hruska CubicleSoft President I've got great, time saving software that you will find useful. http://cubiclesoft.com/ And once you find my software useful: http://cubiclesoft.com/donate/