note 125245 added to language.operators.errorcontrol
| From: | fy dot kenny at gmail dot com | Date: | Thu, 06 Aug 2020 08:14:13 +0000 |
| Subject: | note 125245 added to language.operators.errorcontrol | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214930@lists.php.net to get a copy of this message | ||
* How to make deprecated super global variable
$php_errormsg work
>1. modify php.ini
>track_errors = On
>error_reporting = E_ALL & ~E_NOTICE
>2. Please noteï¼if you already using customized error handlerï¼it will prompt
>undefined variable
>please insert codeset_error_handler(null); before executing
>code, e.g:
>```php
>set_error_handler(null);
>$my_file = @file ('phpinfo.phpx') or
>die ("<br>Failed opening file: <br>\t$php_errormsg");
>```
>(c)Kenny Fang
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 122.235.143.252)
----
Manual Page -- http://php.net/manual/en/language.operators.errorcontrol.php
Edit -- https://master.php.net/note/edit/125245
Del: integrated -- https://master.php.net/note/delete/125245/integrated
Del: useless -- https://master.php.net/note/delete/125245/useless
Del: bad code -- https://master.php.net/note/delete/125245/bad+code
Del: spam -- https://master.php.net/note/delete/125245/spam
Del: non-english -- https://master.php.net/note/delete/125245/non-english
Del: in docs -- https://master.php.net/note/delete/125245/in+docs
Del: other reasons-- https://master.php.net/note/delete/125245
Reject -- https://master.php.net/note/reject/125245
Search -- https://master.php.net/manage/user-notes.php