Gettting warning for deprecated

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
healer
Forum Newbie
Posts: 3
Joined: Wed Mar 09, 2011 6:06 pm

Gettting warning for deprecated

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Gettting warning for deprecated

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
healer
Forum Newbie
Posts: 3
Joined: Wed Mar 09, 2011 6:06 pm

Re: Gettting warning for deprecated

Post by healer »

This local setup is only for reference or testing, not for development.

Shouldn't the settings prevent the warning from coming up?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Gettting warning for deprecated

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
healer
Forum Newbie
Posts: 3
Joined: Wed Mar 09, 2011 6:06 pm

Re: Gettting warning for deprecated

Post 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.
Post Reply