Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 12064

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!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
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="Migrating from PHP 5.1.x to PHP 5.2.x"
HREF="migration52.html"><LINK
REL="PREVIOUS"
TITLE="New INI Configuration Directives"
HREF="migration52.newconf.html"><LINK
REL="NEXT"
TITLE="Other Enhancements"
HREF="migration52.other.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="section"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="migration52.newconf.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>附录 B. Migrating from PHP 5.1.x to PHP 5.2.x</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="migration52.other.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="migration52.errorrep"
>Error Reporting</A
></H1
><P
>&#13;   Some of the existing <TT
CLASS="constant"
><B
>E_ERROR</B
></TT
> conditions have been
   converted to something that you can catch with a user-defined error
   handler.  If an <A
HREF="ref.errorfunc.html#errorfunc.constants"
><TT
CLASS="constant"
><B
>E_RECOVERABLE_ERROR</B
></TT
></A
>
   is not handled, it will behave in the same way as
   <TT
CLASS="constant"
><B
>E_ERROR</B
></TT
> behaves in all versions of PHP.  Errors of
   this type are logged as <TT
CLASS="literal"
>Catchable fatal error</TT
>.
  </P
><P
>&#13;   This change means that the value of the <TT
CLASS="constant"
><B
>E_ALL</B
></TT
>
   <A
HREF="ref.errorfunc.html#ini.error-reporting"
>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 if you are 
   setting the error_reporting mode from either the
   <A
HREF="ref.apache.html#apache.configuration"
>httpd.conf</A
> or the
   <TT
CLASS="filename"
>.htaccess</TT
> files, you will need to adjust the value 
   accordingly.  The same applies if you use the numeric value rather than the 
   constant in your PHP scripts.
  </P
><P
>&#13;   As a side-effect of a change made to prevent duplicate error messages when
   <A
HREF="ref.errorfunc.html#ini.track-errors"
>track_errors</A
> is
   <TT
CLASS="literal"
>On</TT
>, it is now necessary to return <TT
CLASS="constant"
><B
>FALSE</B
></TT
> from your
   error handler in order to populate
   <A
HREF="reserved.variables.html#reserved.variables.phperrormsg"
>$php_errormsg</A
>.  This
   provides you fine-grain control over the levels of messages stored.
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="migration52.newconf.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="migration52.other.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>New INI Configuration Directives</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="migration52.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Other Enhancements</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>