php-doc-en/reference/errorfunc
David Grudl 14a60fad6e
Fixed info about @ operator (#1196)
- UPGRADING says that the error_reporting (ie. value returned by error_reporting() or ini_get('error_reporting ')) is changed, not the severity value passed to the handler.
- UPGRADING says that the error_reporting() == 0 should be replaced with !(error_reporting() & $err_no) in code, not the return with return false. So there is currenctly no way how to detect @ operator.
- "Prior to PHP 8.0.0, the value of the severity passed to the custom error handler was always 0" - no true
- "return false; // Silenced" - not true, if the function returns false then the normal error handler continues, so it is not "silenced".

(partially reverts "Cleanup and update docs related to @ operator" commit 12b1d4704ea448b55ec155619be1e50c0e67e9f9.)

Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
2022-04-04 20:28:18 +01:00
..
functions Fixed info about @ operator (#1196) 2022-04-04 20:28:18 +01:00
book.xml Delete redundant <!-- Membership: --> 2013-05-23 17:38:21 +00:00
constants.xml Remove E_STRICT and other PHP 5 related information (#730) 2021-08-17 17:56:25 +01:00
examples.xml
ini.xml Default value for error_reporting is E_ALL as of PHP 8.0.0 (#1307) 2022-01-08 14:36:08 +00:00
reference.xml
setup.xml
versions.xml Added PHP 8 into versions.xml for errorfunc based on stubs. 2021-01-28 00:06:37 +01:00