note 102879 added to language.operators.errorcontrol
| From: | daniel dot tsviatkov at gmail dot com | Date: | Fri, 11 Mar 2011 21:20:20 +0000 |
| Subject: | note 102879 added to language.operators.errorcontrol | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177806@lists.php.net to get a copy of this message | ||
<?php
for ($i = 0; $i < 1000000; $i++) { @x(); }
?>
Try it this way and you may find the difference.
When the object exists there isn't really great slowdown, something like you said .005 ms which
is ok, but it is used in the cases when the object doesn't exist, and in some cases it can cut
performance.
I think it is always better to know what are you doing and what your scripts do, than suppressing
errors, which may lead you to some serious problems if you see it :)
----
Server IP: 89.190.194.18
Probable Submitter: 94.155.73.188
----
Manual Page -- http://www.php.net/manual/en/language.operators.errorcontrol.php
Edit -- https://master.php.net/note/edit/102879
Del: integrated -- https://master.php.net/note/delete/102879/integrated
Del: useless -- https://master.php.net/note/delete/102879/useless
Del: bad code -- https://master.php.net/note/delete/102879/bad+code
Del: spam -- https://master.php.net/note/delete/102879/spam
Del: non-english -- https://master.php.net/note/delete/102879/non-english
Del: in docs -- https://master.php.net/note/delete/102879/in+docs
Del: other reasons-- https://master.php.net/note/delete/102879
Reject -- https://master.php.net/note/reject/102879
Search -- https://master.php.net/manage/user-notes.php