Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 11879

php-manual-pt_BR-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="Manual do 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"
>Manual do PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="migration52.newconf.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Apêndice 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"
>Próxima</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"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Principal</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="migration52.other.html"
ACCESSKEY="N"
>Próxima</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"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Other Enhancements</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>