#27459 [Opn->Csd]: Error handling page should use constants instead of raw integers
| From: | didou@php.net | Date: | Tue, 02 Mar 2004 15:14:33 +0000 |
| Subject: | #27459 [Opn->Csd]: Error handling page should use constants instead of raw integers | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969359349@lists.php.net to get a copy of this message | ||
ID: 27459
Updated by: didou@php.net
Reported By: cellog@php.net
-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] derick@php.net
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] cellog@php.net
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