downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/migration52.errorrep.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/migration52.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'migration52.errorrep.php',
   
1 => 'Error Reporting',
  ),
 
'up' =>
  array (
   
0 => 'migration52.php',
   
1 => 'Migrating from PHP 5.1.x to PHP 5.2.x',
  ),
 
'prev' =>
  array (
   
0 => 'migration52.newconf.php',
   
1 => 'New INI Configuration Directives',
  ),
 
'next' =>
  array (
   
0 => 'migration52.other.php',
   
1 => 'Other Enhancements',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="migration52.errorrep" class="section">
  <h2 class="title">Error Reporting</h2>
  <p class="para">
   Some of the existing <b><tt class="constant">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.php" class="link"><b><tt class="constant">E_RECOVERABLE_ERROR</tt></b></a>
   is not handled, it will behave in the same way as
   <b><tt class="constant">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 class="constant">E_ALL</tt></b>
   <a href="errorfunc.configuration.php#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.php" 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.php#ini.track-errors" class="link">track_errors</a> is
   <i>On</i>, it is now necessary to return <b><tt class="constant">FALSE</tt></b> from
   user defined error handlers in order to populate
   <var class="varname"><a href="reserved.variables.phperrormsg.php" class="classname">$php_errormsg</a></var>.  This
   provides a fine-grain control over the levels of messages stored.
  </p>
 </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites