3 ms·
The problem is most of the broken behavior in PHP is never going to be fixed because it would break compatibility.
by docgnome 17y ago
The problem is most of the broken behavior in PHP is never going to be fixed because it would break compatibility.
- jacquesm 17y agoPrinting 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).