Knowledgebase Home | Glossary | Favorites Knowledgebase Home | Glossary | Favorites
PHP Error Reporting
Article Details

Last Updated
7th of April, 2010

User Opinions (5 votes)
100% thumbs up 0% thumbs down

How would you rate this answer?
Helpful
Not helpful

Stackable uses integers to represent possible values for the error_reporting setting.

The use of integers is required and the use of constants, such as E_ALL, is not supported. 

Finding the proper integer to represent common constants is not difficult. The table below may be used to find the proper setting:


1 E_ERROR
2 E_WARNING
4 E_PARSE
8 E_NOTICE
16 E_CORE_ERROR
32 E_CORE_WARNING
64 E_COMPILE_ERROR
128 E_COMPILE_WARNING
256 E_USER_ERROR
512 E_USER_WARNING
1024 E_USER_NOTICE
2048 E_STRICT
4096 E_RECOVERABLE_ERROR
8192 E_DEPRICATED
16384 E_USER_DEPRICATED
30719 E_ALL

As an example, to display only PHP notices to the browser, first Display Errors to On.
display_errors.png

To send only notices to the browser, refer to the chart above to find that the value for E_NOTICE is 8.

In the Stackable Control Panel, set Error Reporting to 8.
error_reporting.png

It's also possible to combine the above integers using bitwise values, as discussed here.

Additional discussion about error_reporting constants can be found at php.net.
Visitor Comments
No visitor comments posted. Post a comment
Post Comment for "PHP Error Reporting"
To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Your Name:
* Your Comment:
* Enter the code below:
 
Related Articles
No related articles were found.
Attachments
No attachments were found.

Continue