tags:

views:

327

answers:

1

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.

A: 

E_STRICT is not part of E_ALL, so you just need to set the value to E_ALL. But make sure you can call error_reporting, as it may be disabled. You can also set the error reporting from a .htaccess file.

Macmade
I have display_errors = on and error_reporting = E_ALL and e_strict is still on! The whole day spend in PHP config rubbish!
rtacconi
I tried .htaccess and nothing.
rtacconi
Ok, what's your exact PHP version, and what kind of error is displayed? Are you in a standalone script, or are you using a framework?
Macmade
PHP 5.2.19 on a Mac. I am using Qcubed 1.1. The error is E_STRICT type where a method does not have the same signature of the superclass, a typical E_STRICT case. In PHP 5.2.9 on Win XP and Solaris 10 everything is ok. E_STRICT is not deactivated.
rtacconi