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]
|