Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75434 invoked from network); 4 Jun 2014 06:03:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jun 2014 06:03:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.212.177 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:40119] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/10-07862-1C6BE835 for ; Wed, 04 Jun 2014 02:03:46 -0400 Received: by mail-wi0-f177.google.com with SMTP id f8so716506wiw.16 for ; Tue, 03 Jun 2014 23:03:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=T1OqeW3KdiHWT39gnJVRTDz0WXLYL+IMf5DehvXgnkY=; b=VBD3kkx+zO6NnICqK51FSctGIJlRhU5resJBSsdpFLVCONThWfBdUfjSqX7QnDCvhN xYrMP+rhN3Ao/QOYqS7LZNpF/93rRkHSYQibbkrOE33PLh7QEIHJNZ/DV6fZxkeWeUKs leB8EWxZLAb/11rJFPK/Eq9vR2sr7alEkcnq/1fBKIYP6iHA3X3AmM2nXtGNVo/76OO6 XgY274sSc/Uc8fq7gyrd4qWTwxhLp9wdQiFhB6/i69XcxaU94WcZ+gN3gUdrLrUwN8rw YJU3QlvATn3KS8wyi/3t2OOvY5KCQb13XkRUQwJxImz46zpjOW1xRMj69TvRNtKMn+oX gE2g== X-Gm-Message-State: ALoCoQnjygJ+r1NrcUCcrlgbTYi0QCty8eZ9d8qMH/QAxYg+HtrcTHZIsj4H5FuE2oj1tNCqzVhW MIME-Version: 1.0 X-Received: by 10.194.80.7 with SMTP id n7mr66948066wjx.8.1401861822626; Tue, 03 Jun 2014 23:03:42 -0700 (PDT) Received: by 10.194.77.134 with HTTP; Tue, 3 Jun 2014 23:03:42 -0700 (PDT) X-Originating-IP: [77.180.21.99] In-Reply-To: <538EAD75.5020402@fedoraproject.org> References: <53886F73.70402@php.net> <1401810913.2282.81.camel@guybrush> <538DFEB1.7030207@fedoraproject.org> <538EAD75.5020402@fedoraproject.org> Date: Wed, 4 Jun 2014 08:03:42 +0200 Message-ID: To: Remi Collet Cc: PHP Internals Content-Type: multipart/alternative; boundary=047d7beb9c80f6559704fafc6379 Subject: Re: [PHP-DEV] BC break in 5.4.29 and 5.5.13 From: kontakt@beberlei.de (Benjamin Eberlei) --047d7beb9c80f6559704fafc6379 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Remi, I didn't have time to check the implications of "newInstanceWithoutConstructor", i didn't want to merge that directly into our stable branches. Plans to migrate to the function for php5.4++ exist though. greetings Benjamin On Wed, Jun 4, 2014 at 7:24 AM, Remi Collet wrote: > Le 03/06/2014 21:04, Jeremy Mikola a =C3=A9crit : > > On Tue, Jun 3, 2014 at 1:11 PM, Marco Pivetta > wrote: > > > >> > >> 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. > > > > > > 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/e577e7786796e9393df381f02221= 046dea6253a5 > > (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+. > > > > 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. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --047d7beb9c80f6559704fafc6379--