Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2035 invoked from network); 25 Aug 2011 10:20:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 10:20:47 -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 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:61815] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/30-00227-DF1265E4 for ; Thu, 25 Aug 2011 06:20:46 -0400 Received: by gxk27 with SMTP id 27so2031336gxk.29 for ; Thu, 25 Aug 2011 03:20:43 -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=N/0zoFvZHV/FiVRD5XEsmYaxs1e7EvvfISCH4WWblig=; b=lcfclDDE35DiX6nQver8vulrpvduDZqJrXMluz1xeqw7d76um4Mw5Bter3DHhuSEfI Jd1jxjnwTzsnnguF0yozcF2cMz28COsjtp/J2FXYq7ae2MqiOy4R2ft1YDgooxIWTflr ZgUOcQFL7YvwMNvXoeoWteCLWxV7SJnbC3/oM= MIME-Version: 1.0 Received: by 10.236.116.233 with SMTP id g69mr38437379yhh.39.1314267643087; Thu, 25 Aug 2011 03:20:43 -0700 (PDT) Received: by 10.147.114.7 with HTTP; Thu, 25 Aug 2011 03:20:43 -0700 (PDT) In-Reply-To: <4E5619ED.40609@php.net> References: <4E5619ED.40609@php.net> Date: Thu, 25 Aug 2011 12:20:43 +0200 Message-ID: To: Sebastian Bergmann Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor() From: pierre.php@gmail.com (Pierre Joye) hi, On Thu, Aug 25, 2011 at 11:46 AM, Sebastian Bergmann wr= ote: > =A0I have attached a patch to https://bugs.php.net/bug.php?id=3D55490 tha= t > =A0implements ReflectionClass::newInstanceWithoutConstructor() to create = an > =A0object a class without invoking the constructor. > > =A0As there are certain internal classes that would "crash" when their > =A0constructor is not invoked, this new method of the Reflection API only > =A0works for userland-defined classes. Looks good and as you do the check to avoid internal classes, that's all go= od :) Cheers, --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org