Re:PHP Must Die
by jacquesm on Saturday January 09, 2010 @07:24PM
(#1042293)
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).
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).