Jump to content
Larry Ullman's Book Forums

Error_Reporting()


Recommended Posts

Hello,

 

Just having a look through my php.ini records, my php.ini file has an error_reporting value of 

 

 

error_reporting = E_ALL | E_STRICT

 

Which I always thought was the best setting to develop a site on.

 

However when i run phpinfo() error_reporting has this value '32767' - which is All errors and warnings, as supported, except of level E_STRICT prior to PHP 5.4.0. 

 

http://php.net/manual/en/errorfunc.constants.php

 

So my question is why does phpinfo() not seem to include the strict errors and what value would I need to change to make it also include the strict values?

 

I know I could use

 

<?php
error_reporting(-1);
?> 

 

But i'd prefer to use php.ini if possible.

 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...