dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Classes and Objects (PHP 4)> <New Object Model
[edit] Last updated: Fri, 28 Jun 2013

view this page in

Error Reporting

As of PHP 5 the error reporting constant E_STRICT is available, with the value 2048. When enabled, messages will be issued to warn you about code usage which is deprecated or which may not be future-proof.

Note: E_ALL does not include E_STRICT, so it's not enabled by default. You must explicitly set the error reporting level to include E_STRICT in order to see these messages.

See Predefined Constants for more information.



Classes and Objects (PHP 4)> <New Object Model
[edit] Last updated: Fri, 28 Jun 2013
 
add a note add a note User Contributed Notes Error Reporting - [3 notes]
up
1
Anonymous
10 months ago
According to the notes in the php.ini file, E_ALL *does* include E_STRICT; to exclude it you would use E_ALL & ~E_STRICT

This may be useful for someone who has upgraded and kept their old php.ini
up
0
matthew dot flaschen at gatech dot edu
12 days ago
E_ALL includes E_STRICT in 5.4.0 and up.
up
0
Anonymous
5 years ago
To enable full error reporting (recommended for development boxes) use:

use error_reporting(E_ALL | E_STRICT);

or in php.ini:

error_reporting  =  E_ALL | E_STRICT

 
show source | credits | stats | sitemap | contact | advertising | mirror sites