Search code examples
warningsphpstrict

Unable to turn off strict standards warnings, XAMMP, PHP 5.4.7


I'm trying to get some third-party PHP software to run on Windows (it runs on Ubuntu).

I'm using XAMMP with Apache/2.4.3, PHP/5.4.7

The php.ini file, C:\xampp\php\php.ini, is set to not report strict warnings as shown below:

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

I know that PHP is reading this it's reported as the loaded configuration file in phpinfo() and if I intentionally put an error into it, apache can't restart.

This question has an answer that suggests modifying the root .htaccess as follows:

php_value display_errors 0
php_value error_reporting 30719 

This also had a comment which says that's the .htaccess is the only solution that worked for PHP 5.4.7.

However, still no luck. Short of switching to WAMP, is there anything else I should try?


Solution

  • It's possible that this third-party software you mention overrides the error reporting level itself after you and therefore "wins". Check for this and if that's what happens, configure it appropriately or make sure to override the settings last.