I have the scenario where on my local PC I have PHP 5.0, but on the web hosting server where my clients sites are held they have PHP 4.3.* (its version 4.*.*, I know that for sure). Recently I had to perform a fix, so got the files off the server, and then loaded them up on my local PC (running 5.0). I had quite a few problems. For example, using <?= some code ?> didn't work, I had to change them to <?php echo some code ?> (is there something I can change in the PHP.ini file so that PHP 5.* can use <?= statements?). There are some other problems, which when i encounter them again, I will post here. Tryst -----Original Message----- From: git@xxxxxxxxxxxxxxx To: php-windows@xxxxxxxxxxxxx Sent: Tue, 2 Jan 2007 9.39AM Subject: Re: php5 On Tue, 02 Jan 2007 08:10:22 +0000, Lester Caine wrote: > Mike harrell wrote: >> Is php5 backwards compatable with php4 scripts ? > > We run a lot of PHP5 code that works fine on PHP4 as well, but there are > a number of areas that will give problems and may need you to make > changes to code. > > http://uk2.php.net/manual/en/migration5.php is the starting point, but a > number of other annoying changes happened between 5.0, 5.1 and 5.2 so > you will need to check the additional migration notes for each of those. > > ( Do we need a proper Migrate PHP4 to PHP5.2 document? ) I have found that each version of PHP is not backwards compatable with the one before. 4.4 is not compatable with 4.3 etc. Each release seems to have a set of little fiddles that make something break. Going from 4.4 to 5.x makes just about every script we have break - badly. It would be a major coding task requiring at least one dedicated regression tester and 3 programmers for us to get up to stable at 5.x in in a realistic space of time. The COM stuff is totally different. Object handling in 5.x is complete overkill, default reference passing behaviour has changed. Oh - and in all the tests I have done, php 5.x is slower that php4 :-( IMHO php 4.4.x is a really cool interpreter which is ideal for web tasks of any size. PHP 5.x has lost its way, trying to compete head on with asp.net and jsp. If I want jsp, I'll go get jsp. If I want asp.net - I get psychotherapy! "If it ain't busted, don't fix it!" AJ -- Cubical Land: www.cubicalland.com Nerds-Central: nerds-central.blogspot.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php