For some reason, MAMP won't allow me to turn off E_STRICT warnings. I've tried everything from changing the value explicitly in php.ini to error_reporting(E_ALL & ~E_STRICT) in my file... to explicitly saying php_ini('error_reporting', E_ALL & ~E_STRICT). I'm entirely confused as to why this is happening, and from what I can tell its specific to MAMP.

The version of PHP I'm running is 5.2.13 - and before you start telling me I shouldn't be ignoring those warnings, lets just be clear that I am using a framework that requires that E_STRICT be ignored. (lame, I know.)

link|improve this question
feedback

1 Answer

Try editing your php.ini (line 270)

error_reporting  =  E_ALL & ~E_STRICT

If that fails, try it by editing the .htaccess file in the root-folder

php_value error_reporting 6143

If even that fails, look for the line 'display_errors = Off' and change it to:

display_errors = Off

Be careful, sometimes there is more then one occurrence.

link|improve this answer
E_STRICT isn't even listed as an option in php.ini, and setting the value manually just seems to ignore it. – Mark37 Feb 23 '11 at 23:33
Hmmm, Ok... Maybe MAMP changed something to it... Try the edit above. – Bart De Vos Feb 24 '11 at 0:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.