📄 migration52.errorrep.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Error Reporting</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration52.newconf.html">New INI Configuration Directives</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration52.other.html">Other Enhancements</a></div> <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="migration52.errorrep" class="section"> <h2 class="title">Error Reporting</h2> <p class="para"> Some of the existing <b><tt>E_ERROR</tt></b> conditions have been converted to something that can be caught with a user-defined error handler. If an <a href="errorfunc.constants.html" class="link"><b><tt>E_RECOVERABLE_ERROR</tt></b></a> is not handled, it will behave in the same way as <b><tt>E_ERROR</tt></b> behaves in all versions of PHP. Errors of this type are logged as <i>Catchable fatal error</i>. </p> <p class="para"> This change means that the value of the <b><tt>E_ALL</tt></b> <a href="errorfunc.configuration.html#ini.error-reporting" class="link">error_reporting</a> constant is now 6143, where the previous value was 2047. Because PHP constants have no meaning outside of PHP, in some cases the integer value is used instead so these will need to be adjusted. So for example by setting the error_reporting mode from either the <a href="apache.configuration.html" class="link">httpd.conf</a> or the <var class="filename">.htaccess</var> files, the value has to be changed accordingly. The same applies when the numeric values are used rather than the constants in PHP scripts. </p> <p class="para"> As a side-effect of a change made to prevent duplicate error messages when <a href="errorfunc.configuration.html#ini.track-errors" class="link">track_errors</a> is <i>On</i>, it is now necessary to return <b><tt>FALSE</tt></b> from user defined error handlers in order to populate <var class="varname"><a href="reserved.variables.phperrormsg.html" class="classname">$php_errormsg</a></var>. This provides a fine-grain control over the levels of messages stored. </p> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration52.newconf.html">New INI Configuration Directives</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration52.other.html">Other Enhancements</a></div> <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -