Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54929 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17729 invoked from network); 25 Aug 2011 12:25:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 12:25:13 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:63076] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/92-00227-82F365E4 for ; Thu, 25 Aug 2011 08:25:13 -0400 Received: by ewy2 with SMTP id 2so914108ewy.29 for ; Thu, 25 Aug 2011 05:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ewdueWCALT6/H8q7z7+JRjTEjAEn7I/vDzAn/A0WYWE=; b=gglKOyDt0SnypNu+/scK9X4BN78IdQVnj2zSBH3Gh2TX2y54l5qUz4a2BPkPm0PYvV CJFVHZs9785D2yUNDefrOHpAykMyOpEHYfLPzB3GxeECueM6ibl3M49fn20UJhdNnH76 mc0Jt/1tIed7P087hmScX3bPgvpMn6tXaWPTs= MIME-Version: 1.0 Received: by 10.213.34.72 with SMTP id k8mr266396ebd.30.1314275109829; Thu, 25 Aug 2011 05:25:09 -0700 (PDT) Sender: patrick.allaert@gmail.com Received: by 10.213.31.207 with HTTP; Thu, 25 Aug 2011 05:25:09 -0700 (PDT) In-Reply-To: <4E5619ED.40609@php.net> References: <4E5619ED.40609@php.net> Date: Thu, 25 Aug 2011 14:25:09 +0200 X-Google-Sender-Auth: 65jpaBd0zzLMaM1Gb73ZR2gSTQA Message-ID: To: Sebastian Bergmann Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor() From: patrickallaert@php.net (Patrick ALLAERT) 2011/8/25 Sebastian Bergmann : > =C2=A0I have attached a patch to https://bugs.php.net/bug.php?id=3D55490 = that > =C2=A0implements ReflectionClass::newInstanceWithoutConstructor() to crea= te an > =C2=A0object a class without invoking the constructor. > > =C2=A0As there are certain internal classes that would "crash" when their > =C2=A0constructor is not invoked, this new method of the Reflection API o= nly > =C2=A0works for userland-defined classes. +1 for the feature > =C2=A0Unless there are objections, I will commit this change to PHP_5_4 +0 > and trunk on Monday. +1 > I will add the method to the documentation as well, of > =C2=A0course.