Grammar fixes, clarification, and a pointer to the list of predefined error reporting constants.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287727 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Torben Wilson 2009-08-26 05:47:31 +00:00
parent 8d9ce4422f
commit e48e044d97

View file

@ -911,18 +911,23 @@ Action application/x-httpd-php "/php/php-cgi.exe"
<section xml:id='migrating5.errorrep'>
<title>Error Reporting</title>
<para>
As of PHP 5 new error reporting constant <constant>E_STRICT</constant>
was introduced with value 2048. It enables run-time PHP suggestions on your
code interoperability and forward compatibility, that will help you to keep
latest and greatest suggested method of coding. E.g. STRICT message will
warn you on using deprecated functions.
As of PHP 5 the error reporting
constant <constant>E_STRICT</constant> is available, with the
value <literal>2048</literal>. When enabled, messages will be
issued to warn you about code usage which is deprecated or which
may not be future-proof.
</para>
<note>
<simpara>
<constant>E_ALL</constant> does not include <constant>E_STRICT</constant>
so it's not enabled by default
<constant>E_ALL</constant> does not include <constant>E_STRICT</constant>,
so it's not enabled by default. You must explicitly set the error
reporting level to include <constant>E_STRICT</constant> in order
to see these messages.
</simpara>
</note>
<para>
See <link linkend="errorfunc.constants">Predefined Constants</link> for more information.
</para>
</section>
</appendix>