Search code examples
phpdeprecatedioncube

How to force error_reporting mode in PHP 5.3


I have some code that's encrypted with ioncube and it's also written for < PHP 5.3. There's a ton of deprecated code, which would still work, but there's error messages all over the site.

Is there a way of externally forcing error_reporting to E_ALL ^ E_DEPRECATED or similar? I'm sure in the code they're hardcoding to E_ALL for some reason.


Solution

  • Rolled back to PHP 5.2 and avoided the problem.