Page 1 of 1

Gettting warning for deprecated

Posted: Wed Mar 09, 2011 6:18 pm
by healer
I have a web site hosted on a Linux system with PHP 5.2.13 working fine. When I have it installed on my local Windows xampp system running PHP 5.3.1 I started getting warning for deprecated function. I have checked the php.ini file and it has the same setting on error_reporting which is E_ALL & ~E_DEPRECATED.

I wonder what I could do to eliminate the warning messages for deprecated functions. I have supposed they should be backward compatible.

Re: Gettting warning for deprecated

Posted: Thu Mar 10, 2011 9:50 am
by pickle
Stop using the deprecated functions. Eventually they will no longer be deprecated - they'll be non-existent.

Functions only become deprecated when there's a very good reason to not use them any more. You're better off using supported functions.

Re: Gettting warning for deprecated

Posted: Thu Mar 10, 2011 9:37 pm
by healer
This local setup is only for reference or testing, not for development.

Shouldn't the settings prevent the warning from coming up?

Re: Gettting warning for deprecated

Posted: Fri Mar 11, 2011 9:40 am
by pickle
create a file that outputs phpinfo() & check the error settings there, as well as the location of the php.ini file - it may be different than the one you're modifying.

Re: Gettting warning for deprecated

Posted: Fri Mar 11, 2011 10:53 pm
by healer
I have been trying to get the local site working with the PHP 5.3.1. I've checked with phpinfo() and that is the right file all along. I've even searched the whole area and that is the only php.ini file.

I have then installed an earlier xampp with PHP 5.2.6 and that works fine without any problem. I wonder what could be the problem with the version 5.3.1.