Difference In PHP Versions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ChrisBull
Forum Commoner
Posts: 42
Joined: Fri Aug 20, 2010 7:43 am

Difference In PHP Versions

Post by ChrisBull »

Hi, I just noticed that my online server has php version 5.2.17 whereas my local WAMP server is on version 5.3.4. Is there much difference, if i build my whole application on my local server and then upload it will i be inundated with errors and left with another year of error corrections?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Difference In PHP Versions

Post by califdon »

You could check the differences on the PHP.net website, I believe, but generally, versions that are not whole number changes (PHP4 to PHP5) are mostly, if not entirely, backward compatible. There will surely be a few added functions in the new version, but I wouldn't expect major differences that would affect most applications. Disclaimer: I am not an expert in this area, so I will defer to anyone who has more complete knowledge than I have.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Difference In PHP Versions

Post by Weirdan »

There are serious differences between 5.2 and 5.3 - some new features available in 5.3 like namespaces, closures and anonymous functions won't even parse in 5.2
Post Reply