Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54942 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45537 invoked from network); 25 Aug 2011 13:27:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 13:27:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 93.190.64.36 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 93.190.64.36 mail-6.de-punkt.de Received: from [93.190.64.36] ([93.190.64.36:58999] helo=mail-6.de-punkt.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/B8-00227-8CD465E4 for ; Thu, 25 Aug 2011 09:27:36 -0400 Received: (qmail 10817 invoked by uid 511); 25 Aug 2011 13:27:38 -0000 Received: by simscan 1.3.1 ppid: 10813, pid: 10815, t: 0.0264s scanners: attach: 1.4.0 Received: from unknown (HELO ?0.0.0.0?) (sb%sebastian-bergmann.de@217.114.76.105) by 0 with ESMTPA; 25 Aug 2011 13:27:38 -0000 Message-ID: <4E564DC5.3090600@php.net> Date: Thu, 25 Aug 2011 15:27:33 +0200 Organization: PHP Development Team User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: internals@lists.php.net References: <4E5619ED.40609@php.net> <4E5642F7.9060702@php.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor() From: sebastian@php.net (Sebastian Bergmann) On 08/25/2011 02:54 PM, Gustavo Lopes wrote: > You could fetch the parent and do the same check, and so on. I think you > might be able to just check whether ce.create_object is not NULL, because > if the internal class doesn't replace create_object, there's no chance of > that class of crashes occurring; plus, they're propagated to the subclasses. I updated the patch accordingly. Thanks! -- Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/