betz Sun Dec 7 11:04:36 2003 EDT
Modified files: /phpdoc/en/reference/errorfunc constants.xml ini.xml /phpdoc/en/reference/errorfunc/functions error-reporting.xml Log: real bugfix #26472 E_STRICT available with PHP5 Index: phpdoc/en/reference/errorfunc/constants.xml diff -u phpdoc/en/reference/errorfunc/constants.xml:1.9 phpdoc/en/reference/errorfunc/constants.xml:1.10 --- phpdoc/en/reference/errorfunc/constants.xml:1.9 Mon Dec 1 06:52:54 2003 +++ phpdoc/en/reference/errorfunc/constants.xml Sun Dec 7 11:04:35 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <section id="errorfunc.constants"> &reftitle.constants; &extension.constants.core; @@ -172,30 +172,32 @@ <entry>PHP 4 only</entry> </row> - <row id="e-strict"> - <entry>2048</entry> + <row id="e-all"> + <entry>2047</entry> <entry> - <constant>E_STRICT</constant> + <constant>E_ALL</constant> (<type>integer</type>) </entry> <entry> - Run-time notices. Enable to have PHP suggest changes - to your code which will ensure the best interoperability - and forward compatability of your code. + All errors and warnings, as supported, except of level + <constant>E_STRICT</constant>. </entry> - <entry>PHP 5 only</entry> + <entry></entry> </row> - <row id="e-all"> - <entry>4095</entry> + + <row id="e-strict"> + <entry>2048</entry> <entry> - <constant>E_ALL</constant> + <constant>E_STRICT</constant> (<type>integer</type>) </entry> <entry> - All errors and warnings, as supported. + Run-time notices. Enable to have PHP suggest changes + to your code which will ensure the best interoperability + and forward compatability of your code. </entry> - <entry>With PHP >= 5.0.0 the value changed from 2047 to 4095.</entry> + <entry>PHP 5 only</entry> </row> </tbody> Index: phpdoc/en/reference/errorfunc/ini.xml diff -u phpdoc/en/reference/errorfunc/ini.xml:1.15 phpdoc/en/reference/errorfunc/ini.xml:1.16 --- phpdoc/en/reference/errorfunc/ini.xml:1.15 Mon Dec 1 06:52:54 2003 +++ phpdoc/en/reference/errorfunc/ini.xml Sun Dec 7 11:04:35 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> +<!-- $Revision: 1.16 $ --> <section id="errorfunc.configuration"> &reftitle.runtime; &extension.runtime; @@ -17,7 +17,7 @@ <tbody> <row> <entry>error_reporting</entry> - <entry>E_ALL & ~E_NOTICE & ~E_STRICT</entry> + <entry>E_ALL & ~E_NOTICE</entry> <entry>PHP_INI_ALL</entry> </row> <row> @@ -122,15 +122,9 @@ <link linkend="ini.display-errors">display_errors</link> directive. </para> <para> - In PHP 4 the default value is E_ALL & ~E_NOTICE. This setting does - not show <constant>E_NOTICE</constant> level errors. You may want to - show them during development. - </para> - <para> - In PHP 5 <constant>E_STRICT</constant> is introduced. The default value - is E_ALL & ~E_NOTICE & ~E_STRICT. This setting does not show - errors <constant>E_NOTICE</constant> and <constant>E_STRICT</constant> - level errors. You may want to show them during development. + In PHP 4 and PHP 5 the default value is E_ALL & ~E_NOTICE. This + setting does not show <constant>E_NOTICE</constant> level errors. You + may want to show them during development. </para> <note> <para>Enabling <constant>E_NOTICE</constant> during development has @@ -143,6 +137,17 @@ it is a string index for the array. </para> </note> + <note> + <para> + In PHP 5 a new error level <constant>E_STRICT</constant> is available. + As <constant>E_STRICT</constant> is not included within + <constant>E_ALL</constant> you have to explicitly enable this kind of + error level. Enabling <constant>E_STRICT</constant> during development + has some benefits. STRICT messages will help you to use the latest and + greatest suggested method of coding, for example warn you about using + deprecated functions. + </para> + </note> <para> In PHP 3, the default setting is <literal>(E_ERROR | E_WARNING | E_PARSE)</literal>, Index: phpdoc/en/reference/errorfunc/functions/error-reporting.xml diff -u phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.6 phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.7 --- phpdoc/en/reference/errorfunc/functions/error-reporting.xml:1.6 Mon Dec 1 06:49:35 2003 +++ phpdoc/en/reference/errorfunc/functions/error-reporting.xml Sun Dec 7 11:04:36 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./en/functions/errorfunc.xml, last change in rev 1.1 --> <refentry id="function.error-reporting"> <refnamediv> @@ -143,17 +143,17 @@ </entry> </row> <row> + <entry>2047</entry> + <entry> + <link linkend="e-all">E_ALL</link> + </entry> + </row> + <row> <entry>2048</entry> <entry> <link linkend="e-strict">E_STRICT</link> </entry> </row> - <row> - <entry>4096</entry> - <entry> - <link linkend="e-all">E_ALL</link> - </entry> - </row> </tbody> </tgroup> </table> @@ -161,8 +161,8 @@ <warning> <simpara> With PHP > 5.0.0 <constant>E_STRICT</constant> with value 2048 is - introduced. Therefore the value for <constant>E_ALL</constant> changed - to 4096. + available. <constant>E_ALL</constant> does <emphasis>NOT</emphasis> + include error level<constant>E_STRICT</constant>. </simpara> </warning> <para>