nourdine
nourdine

Reputation: 7597

Disable E_STRICT errors in php.ini

I am trying to disable E_STRICT errors directly in the php.ini. Here's what I put:

display_errors = On
error_reporting = E_ALL & ~E_STRICT

My question is:

Upvotes: 0

Views: 299

Answers (3)

nourdine
nourdine

Reputation: 7597

It is still doing so because I have added a custom error handler using set_error_handler. In that case, as the manual says:

error_reporting() settings will have no effect and your error handler will be called regardless

The second question still remains though ;)

Upvotes: 0

Rakesh Sharma
Rakesh Sharma

Reputation: 13728

try

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

using .htaccess file:

php_value error_reporting 30711

and restart your apache server

Upvotes: 0

Ferrakkem Bhuiyan
Ferrakkem Bhuiyan

Reputation: 2783

in your script

error_reporting = E_ALL & ~E_STRICT

change to

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

If you failed to access to the php.ini, you can potentially put this in your .htaccess file:

php_value error_reporting 30711

i wish it will works ...Thank you

Upvotes: 0

Related Questions