ID:               27459
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: na
 PHP Version:      Irrelevant
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.




Previous Comments:
------------------------------------------------------------------------

[2004-03-02 09:36:04] [EMAIL PROTECTED]

in addition to this the example missses E_STRICT and the information in
the table above has "PHP 4 only" while correct is "PHP 4 and PHP 5
only".

------------------------------------------------------------------------

[2004-03-02 09:29:40] [EMAIL PROTECTED]

Description:
------------
at



http://www.php.net/manual/en/ref.errorfunc.php



the example uses raw integers instead of error constants:



   $errortype = array (

               1    =>  "Error",

               2    =>  "Warning",

               4    =>  "Parsing Error",

               8    =>  "Notice",

               16  =>  "Core Error",

               32  =>  "Core Warning",

               64  =>  "Compile Error",

               128  =>  "Compile Warning",

               256  =>  "User Error",

               512  =>  "User Warning",

               1024 =>  "User Notice"

               );



This should use E_ERROR, E_WARNING, etc.  Using the raw numbers is not
best practice, and should not be encouraged.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27459&edit=1

Reply via email to