fix php 5.4 strict warning which fill the log files (solution proposed)

Hi,

php included E_STRICT in E_ALL making a lot of warning in the code.
Especially, when using webservice.
For example :
“PHP Strict Standards: Non-static method SecurityGroup::inherit_creator() should not be called statically, assuming $this from incompatible context”

Here is the fix for the file soap.php at the root of the website to minimize log amounts (and the problem of finding real errors inside the logs)
Replace
error_reporting(E_ALL ^ E_NOTICE);
by
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);

same thing in : include/Sugarpdf/sugarpdf/sugarpdf.smarty.php

regards,
Vincent

1 Like

Thank you for this. I will sticky the topic.