php5

php5

am 02.01.2007 02:56:05 von triple_h

Is php5 backwards compatable with php4 scripts ?

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: php5

am 02.01.2007 03:19:06 von Aaron Kenney

Rm9yIHRoZSBtb3N0IHBhcnQsIGZyb20gd2hhdCB3aGF0IEkgaGF2ZSBleHBl cmllbmNlZC4gSSBo
YXZlIGhhZCB6ZXJvIGlzc3VlcyB3aXRoIHRoZSBzY3JpcHRzIEkgaGF2ZSB1 c2VkLCBidXQgSSBo
YXZlIGhlYXJkIG9mIG90aGVycyB3aG8gaGF2ZSBwcm9ibGVtcyB3aGVuIHRo ZXkgZ2V0IGludG8g
dmVyeSBzcGVjaWZpYyBmdW5jdGlvbnMsIGVzcGVjaWFsbHkgdGhvc2UgdGhh dCB1c2UgZXh0ZW5z
aW9ucy4gTXlzcWwgc3VwcG9ydCBpcyBsb25nZXIgYnVpbHQgZGlyZWN0bHkg aW50byBwaHAgNS4g
SSBoYWQgbm8gcHJvYmxlbSBzZXR0aW5nIHVwIG15c3FsIHN1cHBvcnQgZm9y IHBocCA1IGluIGZl
ZG9yYSBjb3JlIDQsIGhvd2V2ZXIgd2luZG93cyBwcm92ZWQgdG8gYmUgYSBj aGFsbGVuZ2UgYW5k
IEkgc3RpbGwgZG9uJ3QgcmVtZW1iZXIgaG93IEkgZGlkIGl0IGJlY2F1c2Ug SSBjYW4ndCBkbyBp
dCBhZ2Fpbi4gSWYgeW91IHVzZSBteXNxbCBhbmQgeW91IGRvIG5vdCBoYXZl IGEgZ29vZCByZWFz
b24gdG8gdXBncmFkZSB0byBwaHAgNSwgSSBkbyBub3QgcmVjb21tZW5kIHRo ZSB1cGdyYWRlLiBG
b3IgbWFueSB3aW5kb3dzIHNlcnZlcnMsIEkgZGlkIG5vdCBzZWUgaXQgYXMg YSBuZWNlc3NpdHkg
YmVjYXVzZSBteSBwaHAgNCBzaW1wbHkgd2Fzbid0IGJyb2tlLiBUaGVyZWZv cmUgSSBkaWQgbm90
IGZpeCBpdC4NCi1BYXJvbiBrDQoNClNlbnQgdmlhIEJsYWNrQmVycnkgZnJv bSBULU1vYmlsZSAg
DQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiAiTWlrZSBo YXJyZWxsIiA8dHJp
cGxlX2hAYmVsbHNvdXRoLm5ldD4NCkRhdGU6IE1vbiwgMSBKYW4gMjAwNyAy MDo1NjowNSANClRv
OnBocC13aW5kb3dzQGxpc3RzLnBocC5uZXQNClN1YmplY3Q6IFtQSFAtV0lO XSBwaHA1DQoNCklz
IHBocDUgYmFja3dhcmRzIGNvbXBhdGFibGUgd2l0aCBwaHA0IHNjcmlwdHMg Pw0KDQotLSANClBI
UCBXaW5kb3dzIE1haWxpbmcgTGlzdCAoaHR0cDovL3d3dy5waHAubmV0LykN ClRvIHVuc3Vic2Ny
aWJlLCB2aXNpdDogaHR0cDovL3d3dy5waHAubmV0L3Vuc3ViLnBocA0KDQo=

Re: php5

am 02.01.2007 09:10:22 von Lester Caine

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? )

--
Lester Caine - G8HFL
-----------------------------
L.S.Caine Electronic Services - http://home.lsces.co.uk
Model Engineers Digital Workshop -
http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: php5

am 02.01.2007 10:39:30 von git

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

Re: php5

am 04.01.2007 14:50:33 von Trystano

----------MB_8C8FE1E709F2131_B9C_3B39_FWM-D30.sysops.aol.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"

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 didn't work, I had to change them to (is there something I can change in the PHP.ini file so that PHP 5.* can use
There are some other problems, which when i encounter them again, I will post here.

Tryst

-----Original Message-----
From: git@cubicalland.com
To: php-windows@lists.php.net
Sent: Tue, 2 Jan 2007 9.39AM
Subject: Re: [PHP-WIN] 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



----------MB_8C8FE1E709F2131_B9C_3B39_FWM-D30.sysops.aol.com --

Re: php5

am 04.01.2007 15:30:06 von Stefan Wahl

Hi Trystan!

> 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 didn't work, I had to change them to (is there something I can change in the PHP.ini file so that PHP 5.* can use
Don't know, if it works for
short_open_tag = On

will allow using
Regards,
Stefan

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: php5

am 04.01.2007 17:19:38 von Trystano

----------MB_8C8FE3344468F2C_B9C_4B51_FWM-D30.sysops.aol.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"

Hi Stefan,

thats probably it :) Will give it a try when I get home.

Tryst

-----Original Message-----
From: sx03@freenet.de
To: php-windows@lists.php.net
Sent: Thu, 4 Jan 2007 2.30PM
Subject: Re: [PHP-WIN] php5

Hi Trystan!

> 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 didn't work, I had to change them to (is there something I can change in the PHP.ini file so that PHP 5.* can use
Don't know, if it works for
short_open_tag = On

will allow using
Regards,
Stefan

-- PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



----------MB_8C8FE3344468F2C_B9C_4B51_FWM-D30.sysops.aol.com --

Re: php5

am 04.01.2007 22:04:38 von Dijital

I ran into this problem a lot as well, then just decided to never use
short tags and have since had no problems.

The other thing I found helpful is to setup my development environment
on my local system to be the same (or as close to as possible) as what's
on my host's server. It took me some arguing to get a few specific PHP
settings from them (such as magic quotes enabled which I normally don't
use) but finally got them to provide me the details. Once I did this, my
development time was cut down significantly because I could do all my
development and testing locally and be able to upload to the server and
it would work. If you can do something similar, I highly recommend it.
Cheers.

Armando


trystano@aol.com wrote:
> Hi Stefan,
>
> thats probably it :) Will give it a try when I get home.
>
> Tryst
>
> -----Original Message-----
> From: sx03@freenet.de
> To: php-windows@lists.php.net
> Sent: Thu, 4 Jan 2007 2.30PM
> Subject: Re: [PHP-WIN] php5
>
> Hi Trystan!
>
> > 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 didn't work, I had to change them to (is there something I can change in the PHP.ini file so that PHP 5.* can use >
> Don't know, if it works for >
> short_open_tag = On
>
> will allow using >
> Regards,
> Stefan
>
> -- PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php