Reputation: 7597
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:
Off
are the errors still being logged to apache error logs?Upvotes: 0
Views: 299
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
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
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