This discussion has been interesting.  ;)

These sorts of problems have come up many times during the course of PHP
development.  Things that were implemented to solve a very specific
local problem ended up causing grief when the scope of PHP grew.  Think
of things like magic_quotes_gpc and case-insensitive function names.
Both of these actually made perfect sense when they were implemented but
as things got bigger they started to get in the way and today most
people wish we had broken backwards compatibility a long time ago and
gotten rid of those early on.

We have tended towards not breaking BC over the years leaving quite a
bit of cruft around for people to deal with.  Watching Derick try to
buck that trend has been fun and I think he deserves a bit less vitriol
for his efforts.

His new date() code is obviously better and more portable than what we
had.  So it comes down to a pretty simple decision that doesn't need all
that much emotion poured into it:

 Do we take the BC hit now to get clean and consistent date/time
 handling or do we stay with the BC over all else path we usually
 take?  Either way we have pain.  If we break BC there will be plenty
 of pain from very vocal users who feel personally wronged that we broke
 their code, and if we don't break BC and go with two different
 date/time systems we have to live with these two systems forever and
 it we will need to hold up the 5.1 release for a couple of weeks.

I actually lean more towards the keeping BC side here but was hoping the
new date implementation could get to the point of minimal BC breakage or
perhaps even none with some sort of compatibility mode.  I think there
is a lot to be said for not having two different implementations so for
the folks who feel so strongly about this, pitch in with some testing
and help make this new implementation backward compatible.  It should be
possible to get this timezone mapping to the point where it addresses
the majority of timezone name overlaps in the world.

-Rasmus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to