Re:PHP Must Die
by docgnome on Saturday January 09, 2010 @07:20PM
(#1042280)
The problem is most of the broken behavior in PHP is never going to be fixed because it would break compatibility.
[ Parent
| on HN ]
Printing a warning would be easy enough, you could disable the warning if you want it to work like this. Leave that for one generation with a 'deprecated' attached to it, remove in the major release after that.
Lots of things that were wrong have been changed like that.
The biggest one remaining of the 'old' bugs which I think really would break too much is the strpos return value in case of no match (which is 'false' but 0 is a legal return value as well, -1 would have been a far better choice).