Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20360 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14544 invoked by uid 1010); 25 Nov 2005 10:43:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14529 invoked from network); 25 Nov 2005 10:43:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2005 10:43:24 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:43847] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FD/55-56276-ACAE6834 for ; Fri, 25 Nov 2005 05:43:23 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id jAPAhJBj028515; Fri, 25 Nov 2005 11:43:19 +0100 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id jAPAhHcV028503; Fri, 25 Nov 2005 11:43:17 +0100 Date: Fri, 25 Nov 2005 11:43:17 +0100 (CET) X-X-Sender: derick@localhost To: sk@webfactory.de cc: internals@lists.php.net In-Reply-To: <818043770511250202s33938ec5k6fecff888c2316eb@mail.gmail.com> Message-ID: References: <7.0.0.16.2.20051124161240.0573e640@zend.com> <20051125034515.6fefa4e2@localhost.localdomain> <43867C6C.2010209@prohost.org> <20051125040950.26305e08@localhost.localdomain> <43869FC5.4060708@lerdorf.com> <20051125075501.79718ee6@localhost.localdomain> <1132903004.9936.25.camel@localhost.localdomain> <1086017308.20051125091648@marcus-boerger.de> <818043770511250202s33938ec5k6fecff888c2316eb@mail.gmail.com> X-Face: "L'&?Ah3MYF@FB4hU'XhNhLB]222(Lbr2Y@F:GE[OO;"F5p>qtFBl|yVVA&D{A(g3[C}mG:199P+5C'v.M/u@Z\![0b:Mv.[l6[uWl' MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there) From: derick@php.net (Derick Rethans) On Fri, 25 Nov 2005, Sebastian Kugler wrote: > Derick, > > > you will break code that is out there. > > do you have an idea how much code is "out there" that has classes > named "Date"? No, I have no numbers, but there are definitely people who used that name out there (besides PEAR). PHP 5.1 does come with other changes in behavior though, which are all meant in the upgrade notes. Included here is the issue with the date class. (I know this only works in an ideal world:) Users should always evaluate if they can upgrade to the latest PHP version (x. or .y.) to see if there is any change in behavior, therefore it shouldn't be that much of a problem for people writing good applications. ISPs should know better than to upgrade immediately. > Above all, you can definitely not introduce new classes in RC6! It was oversighted, it should indeed have been done before rc1 (or rc2). > And this date class doesn't even seem to provide any functionality, so > that there would be an incentive (or even possibility) to migrate > projects using PEAR::Date to the new Date class. Why did this class > have to be crippled (i. e. deactivating its methods) BUT incorporated > in 5.1 and why not before RC6? It has class constants, so there is (some) functionality. Previously the constants were "DATE_ISO8601" and now they are date::ISO8601, this is something that I use in my code currently - this code is about to be released to the public. And if it was for me, this class *would* have had functionality and it has been ifdef'ed out in CVS for about 5 months now because it could stall the release. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org