Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54928 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13743 invoked from network); 25 Aug 2011 11:46:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 11:46:59 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:36800] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/12-00227-D26365E4 for ; Thu, 25 Aug 2011 07:46:54 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id C7B617000390 for ; Thu, 25 Aug 2011 12:46:50 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id M-lAwqol28RL for ; Thu, 25 Aug 2011 12:46:50 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 97F2B70003C3 for ; Thu, 25 Aug 2011 12:46:50 +0100 (WEST) Received: from cataphract-old.dulce.lo.geleia.net (cataphract-old.dulce.lo.geleia.net [IPv6:2001:470:94a2:2:9978:6e7:759:40ee]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 579472007E75 for ; Thu, 25 Aug 2011 12:46:49 +0100 (WEST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: internals@lists.php.net References: <4E5619ED.40609@php.net> Date: Thu, 25 Aug 2011 12:46:39 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Organization: =?utf-8?Q?N=C3=BAcleo_de_Eng=2E_Biom=C3=A9di?= =?utf-8?Q?ca_do_IST?= Message-ID: In-Reply-To: <4E5619ED.40609@php.net> User-Agent: Opera Mail/11.50 (Win32) Subject: Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor() From: glopes@nebm.ist.utl.pt ("Gustavo Lopes") On Thu, 25 Aug 2011 10:46:21 +0100, Sebastian Bergmann wrote: > I have attached a patch to https://bugs.php.net/bug.php?id=55490 that > implements ReflectionClass::newInstanceWithoutConstructor() to create > an > object a class without invoking the constructor. > > As there are certain internal classes that would "crash" when their > constructor is not invoked, this new method of the Reflection API only > works for userland-defined classes. > What about userland classes that extend internal classes? -- Gustavo Lopes