Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74736 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71753 invoked from network); 4 Jun 2014 05:24:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2014 05:24:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 217.70.183.198 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 217.70.183.198 relay6-d.mail.gandi.net Received: from [217.70.183.198] ([217.70.183.198:51445] helo=relay6-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/71-64944-A7DAE835 for ; Wed, 04 Jun 2014 01:24:11 -0400 Received: from mfilter3-d.gandi.net (mfilter3-d.gandi.net [217.70.178.133]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id B44A6FB883 for ; Wed, 4 Jun 2014 07:24:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter3-d.gandi.net Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter3-d.gandi.net (mfilter3-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id AyrENoBwGc+p for ; Wed, 4 Jun 2014 07:24:06 +0200 (CEST) X-Originating-IP: 82.241.130.121 Received: from schrodingerscat.famillecollet.com (pom51-2-82-241-130-121.fbx.proxad.net [82.241.130.121]) (Authenticated sender: contact@ll-experts.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 12CB4FB881 for ; Wed, 4 Jun 2014 07:24:05 +0200 (CEST) Message-ID: <538EAD75.5020402@fedoraproject.org> Date: Wed, 04 Jun 2014 07:24:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <53886F73.70402@php.net> <1401810913.2282.81.camel@guybrush> <538DFEB1.7030207@fedoraproject.org> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] BC break in 5.4.29 and 5.5.13 From: remi@fedoraproject.org (Remi Collet) Le 03/06/2014 21:04, Jeremy Mikola a =C3=A9crit : > On Tue, Jun 3, 2014 at 1:11 PM, Marco Pivetta wrot= e: >=20 >> >> It is going to be released, but yes, we actually have the expectation = a >> patch release for 5.4 and 5.5 with a rollback of this breakage. >=20 >=20 > The original Doctrine PR that fixed this issue was > https://github.com/doctrine/doctrine2/pull/1045, and Benjamin made some > revisions in > https://github.com/doctrine/doctrine2/commit/e577e7786796e9393df381f022= 21046dea6253a5 > (note: there is a typo there, as he actually should be checking for 5.4= .29 > instead of 5.4.28). Based on the conversation above, it sounds like the > revert will end up in 5.4.30 and 5.5.14, but we should expect the chang= e > for 5.6+. Why don't you simply use newInstanceWithoutConstructor() as soon as possible (5.4+) ? I rather see unzerialize('O:%d:"%s":0:{}') as a workaround for old version, instead of the opposite... The fix is not really reverted, only a workaround for this regression, and only for user class (so the segfault is fixed, for internal class). FYI, a user of my repo have confirm (real app.) than - doctrine + php 5.4.29 is broken (the reason why I raised this issue here last Friday, I was aware of PHPUnit problem for a long time, but was thinking it is 5.6 only) - doctrine + initial patch works with php 5.4.29 - doctrine works with php 5.4.29 + patch > In that case, Benjamin's commit needs to (a) fix the 5.4.x typo and (b)= add > another condition to utilize Reflection for 5.6+. >=20 > Has PHPUnit already incorporated a work-around for this? At a glance, I > didn't see anything in the main repository or > https://github.com/sebastianbergmann/phpunit-mock-objects. https://github.com/sebastianbergmann/phpunit-mock-objects/commit/1c68f133= 8f1940deb8265428bb2a7cbc5bc074b5 https://github.com/sebastianbergmann/phpunit-mock-objects/commit/ba8784d8= 8ff4cc52cf9424d7f7c631ccd867019c Remi. P.S. FYI, in Fedora: - Doctrine package includes the initial patch, so works - PHPUnit package includes the upstream patch, so works - PHP 5.5.13 includes the patch, so even a manually installed Doctrine or PHPUnit will work.