Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75011 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86004 invoked from network); 20 Jun 2014 00:45:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jun 2014 00:45:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.46 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.216.46 mail-qa0-f46.google.com Received: from [209.85.216.46] ([209.85.216.46:51371] helo=mail-qa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/C4-61414-73483A35 for ; Thu, 19 Jun 2014 20:45:43 -0400 Received: by mail-qa0-f46.google.com with SMTP id i13so2556990qae.5 for ; Thu, 19 Jun 2014 17:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=7fH5Eq0M2rrasFrUZm32Xe45HYV88k04WcNVBOpRjGQ=; b=Ina89/NIul0YSRm0jVB/Aif5BndJt9hOOBVo/x3fyRb6AtOIpMITaPMRVoid28vG3N RQ3ftIpIPn8LH18xiNnUr2H1hCO1qzsiDKicnDSy4ZimSeYlWx7UI8sT00Knun8P2W6Q qFw+9hyymxjyYLMAjM3DmgdwWr9SgQPI9OH4ThyvbLDse0q0ELzGMUl9ds6wjmWp2+i+ Yl5r4X6jQwKLGzxLUGEJTJPGbjoo+u0aNGqtlJytjdOA29fSpj9HeJ1XRH5jv+4jt2di PdeiJVlx9GkwHRFVzaRokNZVBAMgMdlDAuAEFrvIlLRXO685Yhkvyq7jl5PuHkbUd66A F7ZQ== X-Received: by 10.140.88.18 with SMTP id s18mr30698qgd.73.1403225140915; Thu, 19 Jun 2014 17:45:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.25.76 with HTTP; Thu, 19 Jun 2014 17:45:20 -0700 (PDT) In-Reply-To: References: <53A1C722.9060501@fedoraproject.org> <53A21137.6010705@sugarcrm.com> <53A2A9BD.1070603@sugarcrm.com> Date: Fri, 20 Jun 2014 02:45:20 +0200 Message-ID: To: Ferenc Kovacs Cc: Stas Malyshev , Julien Pauli , Remi Collet , PHP Internals Content-Type: multipart/alternative; boundary=001a11c13cca10763604fc39d0ad Subject: Re: [PHP-DEV] Re: Problems with the fix for the BC break introduced in 5.4.29 and 5.5.13 From: ocramius@gmail.com (Marco Pivetta) --001a11c13cca10763604fc39d0ad Content-Type: text/plain; charset=UTF-8 On 20 June 2014 02:30, Ferenc Kovacs wrote: > I've linked the discussion and provide a really compact summary (I think it > is too compact) at https://bugs.php.net/bug.php?id=67072 > I'm a bit indecisive about the current situation, because I think that we > should fix the root cause of these problems, but I'm also wanna make sure > that we don't totally criple phpunit-mock-objects and doctrine with a micro > release. > At the end of the day, what we need is just instantiating an object without invoking its constructor. Wouldn't it be much easier to just revert for 5.4 and 5.5 and then patching `ReflectionClass#newInstanceWithoutConstructor()` to just handle internal PHP classes as well? Is there a technical limitation for this? Are there security problems related to the patch that broke phpunit/doctrine? If not, can the patch simply be delayed and only applied to 5.6? If we get a stable API to instantiate objects in our way, we'd simply gradually move away from the reflection "hack" in the next point releases of doctrine/phpunit, while using `unserialize()` only for older versions of PHP. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a11c13cca10763604fc39d0ad--