You are here: Re: php4 end of life « PHP Programming Language « IT news, forums, messages
Re: php4 end of life

Posted by Oliver Grδtz on 02/20/07 10:10

Kimmo Laine schrieb:
> Oliver didn't claim that there are *no* incompatibility issues between 4
> and 5 because there are and everybody knows that. All he meant was that
> there are *less* of them between 4 and 5 than between 4.3 and 4.4.

Exactly. The biggest chance in PHP regarding compatibility issues was
the bug fix that caused the "only variables can be passed by reference"
error messages. And this fix was deployed on PHP4 (4.4.0 I think) as
well as PHP5 (5.0.5 I think), causing a huge amount of applications to
break. People started to shout at the PHP devs to revert this change
because they didn't want to hear that this was the fix of a nasty bug
causing memory leaks AND they didn't realize that the previous
implementation could cause their applications to produce unexpected
results anytime.

In fact, getting your application past this problem i usually more work
than making it compatible with PHP5 afterwards. If you upgraded to 5.0.0
from 4.3.x than the same work arises when upgrading to 5.0.5 inside PHP5
but this problems are NOT PHP5 SPECIFIC.

As for the change from passing references instead of copies when
assigning objects: This is almost never a problem because if your
application used & to create references then this code works without
changes (with suboptimal speed but it works). Only if you ABSOLUTELY
depend on the two being independent instances after the assignment then
you run into problems.

OLLi

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация