-null- Posted August 30, 2009 Share Posted August 30, 2009 In my php.ini I have error_reporting = E_ALL & ~E_DEPRECATED however I am still getting errors about deprecated functions (ereg_replace). I've checked the code (3rd party app) and they only seem to have set error_reporting like this error_reporting (E_ERROR | E_WARNING | E_PARSE); I assumed this would switch off the deprecated warning however it isn't. So what will? Quote Link to comment https://forums.phpfreaks.com/topic/172481-error_reporting-problem/ Share on other sites More sharing options...
wildteen88 Posted August 30, 2009 Share Posted August 30, 2009 You cant disable that error. You're running PHP5.3, which no longer supports eregi. You'll want to use the preg_replace function instead. Quote Link to comment https://forums.phpfreaks.com/topic/172481-error_reporting-problem/#findComment-909307 Share on other sites More sharing options...
Daniel0 Posted August 30, 2009 Share Posted August 30, 2009 This should work: <?php error_reporting(E_ALL & ~E_DEPRECATED); ereg('foo', 'bar'); Quote Link to comment https://forums.phpfreaks.com/topic/172481-error_reporting-problem/#findComment-909313 Share on other sites More sharing options...
-null- Posted August 30, 2009 Author Share Posted August 30, 2009 Grrrr...the value was being set again in another file that I never noticed Fixed now thanks. Quote Link to comment https://forums.phpfreaks.com/topic/172481-error_reporting-problem/#findComment-909336 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.