Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54857 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84130 invoked from network); 24 Aug 2011 10:37:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Aug 2011 10:37:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:47574] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/C6-48631-E44D45E4 for ; Wed, 24 Aug 2011 06:37:02 -0400 Received: by gwb17 with SMTP id 17so982185gwb.29 for ; Wed, 24 Aug 2011 03:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=GaeAs/R/4ftaL0kWiIHPGLFOoC3Qi8owdDnCpVR6Pxw=; b=NrqWK0x2wL1r/4F0uOiZvHaSzi7nWZKnAOWcIKYCNPCsOCb3Ld0Ap92EVjyzesED84 Vy2m+ovM++u2B6cpry0XUGWa/aus8i6NlUUMz3lhkx2uGJwePLBnbC7zJob5jMuXWf9I a7dWZNjvBferTstv2s/e0O3D4fVWe2KaBeuys= MIME-Version: 1.0 Received: by 10.146.225.7 with SMTP id x7mr5019360yag.10.1314182220017; Wed, 24 Aug 2011 03:37:00 -0700 (PDT) Received: by 10.147.168.5 with HTTP; Wed, 24 Aug 2011 03:36:59 -0700 (PDT) In-Reply-To: References: <1314115682.2635.98.camel@guybrush> <4E545A6C.60704@akbkhome.com> Date: Wed, 24 Aug 2011 12:36:59 +0200 Message-ID: To: Ferenc Kovacs Cc: Derick Rethans , "alan@akbkhome.com" , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP 5.3.8 Released! From: pierre.php@gmail.com (Pierre Joye) the problem is to change existing tests to match a "possible fix", that defeats the whole purpose of testing possible BC breaks using our test suites. We should definitively run x.y.0 tests during the whole x.y.0 life, and if something has to be changed, then it should be 1st be discussed, or RFC for big changes. And then it should indeed be documented as well, in the UPGRADING guide (should be done anyway for x.y+1 versions too). On Wed, Aug 24, 2011 at 12:24 PM, Ferenc Kovacs wrote: > On Wed, Aug 24, 2011 at 12:00 PM, Pierre Joye wrot= e: >> agreed. >> > > about this specific change: > the real problem is that nobody spotted this change until we rolled > out the stable release, after that we can only chose from bad options. > we could have spotted this via two ways: > - those who participated in fixing > https://bugs.php.net/bug.php?id=3D53727 could have spotted this > - our tests should have start failing after the change > > AFAIK non of that happened, and fixing the first is hard, so I would > propose fixing the second (I know, it is already agreed and worked > toward) > > another problem is that the current(and before the change also) proto > was not forced by the function, so if is_a() would raise warnings when > non-object is passed to the first argument, this BC break would have > much less impact. > > so I got the idea that it would be usefull, if somebody could write a > script which fetches the proto for the functions/methods and does some > fuzzing which checks if the protos are enforced. > after that, we would have a list, and probably we could fix those > (changing the proto and the docs to the real behaviour, or vica > versa), and we could see whether the fix would impy BC and for those > cases we could just keep it as is for the stable branch and create > tests which would guarantee that changing the current behavior in the > stable branch wouldn't go unnoticed. > > -- > Ferenc Kov=E1cs > @Tyr43l - http://tyrael.hu > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org