Disable strict standards in PHP 5.3.8

Hafiz picture Hafiz · Jan 2, 2012 · Viewed 17.3k times · Source

I am using strict standards option in PHP but I want to disable it because Joomla doesn't like it and I have to use Joomla on my localhost.

In response to another question on this site, this solution was given: E_ALL & ~E_DEPRECATED & ~E_STRICT but this didn't work for me. I think it only works for PHP 5.4 while I am using 5.3.8.

Can anyone tell me what I should use? I am currently using error_reporting(E_ALL & ~E_NOTICE). Also I am using ini_set('display_errors') but there are still errors shown that are related to strict standards.

So how can I disable strict standard errors?

Answer

thanhtd picture thanhtd · Jan 27, 2012

I have the same problem. This is how I fix it in joomla.

Set error_reporting in configuration.php of joomla to "30711" (equal to E_ALL & ~E_NOTICE & ~E_STRICT)