cvs: phpdoc /en/reference/errorfunc/functions error-reporting.xml
| From: | Philip Olson | Date: | Tue, 28 Apr 2009 17:01:07 +0000 |
| Subject: | cvs: phpdoc /en/reference/errorfunc/functions error-reporting.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3907@lists.php.net to get a copy of this message | ||
philip Tue Apr 28 17:01:07 2009 UTC
Modified files:
/phpdoc/en/reference/errorfunc/functions error-reporting.xml
Log:
- Mentioned -1 usage to show every error -- documented as a tip and example
- Changed a changelog version entry from 6 to 6.0.0
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/errorfunc/functions/error-reporting.xml?r1=1.23&r2=1.24&diff_format=u
Index: phpdoc/en/reference/errorfunc/functions/error-reporting.xml
diff -u phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.23
phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.24
--- phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.23 Thu Nov 13 19:35:40 2008
+++ phpdoc/en/reference/errorfunc/functions/error-reporting.xml Tue Apr 28 17:01:07 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.23 $ -->
+<!-- $Revision: 1.24 $ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.error-reporting">
<refnamediv>
<refname>error_reporting</refname>
@@ -188,7 +188,7 @@
<entry><constant>E_DEPRECATED</constant> and
<constant>E_USER_DEPRECATED</constant> introduced.</entry>
</row>
<row>
- <entry>6</entry>
+ <entry>6.0.0</entry>
<entry><constant>E_STRICT</constant> became part of
<constant>E_ALL</constant>.</entry>
</row>
</tbody>
@@ -220,9 +220,12 @@
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);
-// Report all PHP errors
+// Report all PHP errors (see changelog)
error_reporting(E_ALL);
+// Report all PHP errors
+error_reporting(-1);
+
// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
@@ -243,6 +246,13 @@
to include <constant>E_STRICT</constant> errors (and vice versa).
</simpara>
</warning>
+ <tip>
+ <simpara>
+ Passing in the value <literal>-1</literal> will show every possible error,
+ even when new levels and constants are added in future PHP versions. The
+ <constant>E_ALL</constant> constant also behaves this way as of PHP 6.
+ </simpara>
+ </tip>
</refsect1>
<refsect1 role="seealso">