Page 1 of 1

remove depricated warnings

Posted: Tue Apr 19, 2011 1:44 pm
by hostingguy
How to get rid of these?

Code: Select all

Deprecated: Function eregi_replace() is deprecated in /some/file line 7
I tried setting these values and it didn't change anything

Code: Select all

error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR ^ E_DEPRECATED
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR & ~ E_DEPRECATED
error_reporting  =  E_ALL & ~E_DEPRECATED|E_NOTICE|E_WARNING
error_reporting  =  E_ALL & ~E_DEPRECATED

Re: remove depricated warnings

Posted: Tue Apr 19, 2011 3:58 pm
by mikeshinn
This in php.ini:

Code: Select all

    error_reporting = E_ALL & ~E_DEPRECATED
Doesnt work for you after you restart apache? Er... are you sure you have just one error_reporting line?

Re: remove depricated warnings

Posted: Tue Apr 19, 2011 4:05 pm
by hostingguy
Nope, I made that change and restarted httpd, and looked at the error_reporting in phpinfo

Code: Select all

error_reporting 30719 ^ 8192
but it still has it on the page.

Re: remove depricated warnings

Posted: Thu Apr 21, 2011 9:50 am
by DarkF@der
anyone got allready the solution for this?

Re: remove depricated warnings

Posted: Thu Apr 21, 2011 4:31 pm
by paulie
Have you eliminated the web app? Lots of web apps will set their own error reporting parameters ( I believe the initial values can always be overridden) which are likely to be aggressive in logging errors, warnings and notices.

Re: remove depricated warnings

Posted: Thu Apr 21, 2011 4:38 pm
by hostingguy
In my case this app doesnt have a .htaccess file and I didnt see anything obvious but its quite possible its in there somewhere.