rtacconi rtacconi - 1 month ago 8
PHP Question

How to disable E_STRICT

I need to turn off E_STRICT. I have error_reporting = E_ALL & ~E_STRICT in my php.ini but it seems to be ignored. I tried this in my code:

ini_set('error_reporting', E_NOTICE);


Nothing!

Please help.

Answer

try this.

error_reporting(E_ALL ^ E_STRICT);

This will report all errors except E_STRICT

Comments