note 116731 added to language.operators.errorcontrol

From: Date: Fri, 20 Feb 2015 14:15:16 +0000
Subject: note 116731 added to language.operators.errorcontrol
Groups: php.notes 
Request: Send a blank email to php-notes+get-201766@lists.php.net to get a copy of this message
While you should definitely not be too liberal with the @ operator, I also disagree with people who claim it's the ultimate sin. For example, a very reasonable use is to suppress the notice-level error generated by parse_ini_file() if you know the .ini file may be missing. In my case getting the FALSE return value was enough to handle that situation, but I didn't want notice errors being output by my API. TL;DR: Use it, but only if you know what you're suppressing and why. ---- Server IP: 72.52.91.14 Probable Submitter: 88.159.23.235 ---- Manual Page -- http://php.net/manual/en/language.operators.errorcontrol.php Edit -- https://master.php.net/note/edit/116731 Del: integrated -- https://master.php.net/note/delete/116731/integrated Del: useless -- https://master.php.net/note/delete/116731/useless Del: bad code -- https://master.php.net/note/delete/116731/bad+code Del: spam -- https://master.php.net/note/delete/116731/spam Del: non-english -- https://master.php.net/note/delete/116731/non-english Del: in docs -- https://master.php.net/note/delete/116731/in+docs Del: other reasons-- https://master.php.net/note/delete/116731 Reject -- https://master.php.net/note/reject/116731 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201766) next »