News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Developer Tutorials Blog:
Migrating legacy PHP 4 applications to PHP 5
July 10, 2008 @ 07:56:41

In a new post to the Developer Tutorials blog Akash Mehta takes a look at migrating PHP4 applications up to the more recent versions of PHP5.

PHP 5 supports most of the legacy syntax features of PHP 4. Most code written for PHP 4 should function fine under PHP 5, and a comprehensive test suite could check this. However, many of the backwards-incompatible changes in PHP 5 were in regard to language quirks, and quite a few hacks rely on these in order to function.

He points out some of these hacks including changes to the object model and updates to the way variables are handled (breaking many "bad use" cases). He also points out the changes made in the latest Windows binaries as well as some of the new reserved keywords that could conflict with pre-existing code in your application.

0 comments voice your opinion now!
migrate application php4 php5 legacy upgrade gotcha


blog comments powered by Disqus

Similar Posts

DevShed: Building an Image Generator Class with PHP 5

Sebastian Marek's Blog: PHP 5.4 Compatibility Coding Standard for PHP_CodeSniffer

DevShed: Introducing Static Members and Methods in PHP 5 (Part 1)

Ilia Alshanetsky's Blog: 5.2.2RC1 Released for Testing

Hasin Hayder: Running Symfony 2 Applications in OpenShift


Community Events





Don't see your event here?
Let us know!


symfony2 release opinion refactor list series unittest configure introduction install developer framework community podcast threedevsandamaybe language laravel testing interview code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework