note 114387 added to language.operators.errorcontrol
| From: | Anonymous | Date: | Fri, 14 Feb 2014 11:24:46 +0000 |
| Subject: | note 114387 added to language.operators.errorcontrol | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198510@lists.php.net to get a copy of this message | ||
I was wondering if anyone (else) might find a directive to disable/enable to error operator would be
a useful addition. That is, instead of something like (which I have seen for a few places in some
code):
<?php
if (defined(PRODUCTION)) {
@function();
}
else {
function();
}
?>
There could be something like this:
<?php
if (defined(PRODUCTION)) {
ini_set('error.silent',TRUE);
}
else {
ini_set('error.silent',FALSE);
}
?>
----
Server IP: 64.71.164.2
Probable Submitter: 107.3.124.120
----
Manual Page -- http://php.net/manual/en/language.operators.errorcontrol.php
Edit -- https://master.php.net/note/edit/114387
Del: integrated -- https://master.php.net/note/delete/114387/integrated
Del: useless -- https://master.php.net/note/delete/114387/useless
Del: bad code -- https://master.php.net/note/delete/114387/bad+code
Del: spam -- https://master.php.net/note/delete/114387/spam
Del: non-english -- https://master.php.net/note/delete/114387/non-english
Del: in docs -- https://master.php.net/note/delete/114387/in+docs
Del: other reasons-- https://master.php.net/note/delete/114387
Reject -- https://master.php.net/note/reject/114387
Search -- https://master.php.net/manage/user-notes.php