Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75146 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24876 invoked from network); 30 Jun 2014 16:34:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jun 2014 16:34:46 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qa0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:48604] helo=mail-qa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/C0-19922-4A191B35 for ; Mon, 30 Jun 2014 12:34:45 -0400 Received: by mail-qa0-f49.google.com with SMTP id w8so6496884qac.22 for ; Mon, 30 Jun 2014 09:34:42 -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=aDbO0ceNbs0USHmAVsRMASGWNQ8mQp1rI2p6ahchJa4=; b=VzZhfnNI5+pyMmL5NHj1UrSN3RDOgjLnS5otHXwk+Kcg72j8u3pttrK6HFVTja60Py 6mxyvFLLQV2J2Ddf/1q6vCY0Cvtz7+73lcrFiXzCM6XpLRslK16MGgLpp/fMAXXSLqn/ wMZA3xdJvAl5UfHYypRl0Ax2vm4tA3Yb+ySN65j5L3tb8UNfkRXiov8SpQS5VIwNy/Q/ 2BxJInCbpBdxWJbPIHE/UJqnWlS1Q83MI2wG8wmLSfsFYE1Tu88r/iFQOAzvAFzZWJ0L SbFUCQqzAu7+neDdGgO16bpuBbPHTxzA61gNplyaGCF7wNGyMexkxP+yakOLUJe7iTl+ +EUg== X-Received: by 10.140.35.232 with SMTP id n95mr30513601qgn.82.1404146082558; Mon, 30 Jun 2014 09:34:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.51.161 with HTTP; Mon, 30 Jun 2014 09:34:22 -0700 (PDT) In-Reply-To: References: <53A1C722.9060501@fedoraproject.org> <53A21137.6010705@sugarcrm.com> <53A2A9BD.1070603@sugarcrm.com> <53A3874E.20704@sugarcrm.com> <53A62AFF.4080302@sugarcrm.com> <53B10D59.4060206@sugarcrm.com> Date: Mon, 30 Jun 2014 18:34:22 +0200 Message-ID: To: Julien Pauli Cc: Ferenc Kovacs , Stas Malyshev , Remi Collet , PHP Internals , Sebastian Bergmann Content-Type: multipart/alternative; boundary=001a11c03f3476d60604fd103c68 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) --001a11c03f3476d60604fd103c68 Content-Type: text/plain; charset=UTF-8 On 30 June 2014 17:55, Julien Pauli wrote: > Perhaps anonymous classes ? > Or just to know , why can't you create a class that extends the one > you want, and write an empty constructor into it ? > That way you'd be able to create an object using "new" , and redefine > the methods you want to make them return what you want. am I wrong ? > That's what I've been doing so far, but the method doesn't work with: - final constructors - APIs that rely on reflection-ish logic (`get_class()`) Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --001a11c03f3476d60604fd103c68--