Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54944 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54902 invoked from network); 25 Aug 2011 14:03:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 14:03:39 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.213.42 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:46922] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/8A-00227-936565E4 for ; Thu, 25 Aug 2011 10:03:38 -0400 Received: by ywb3 with SMTP id 3so2205396ywb.29 for ; Thu, 25 Aug 2011 07:03:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.28.33 with SMTP id k33mr13064837ibc.81.1314281014496; Thu, 25 Aug 2011 07:03:34 -0700 (PDT) Received: by 10.231.68.17 with HTTP; Thu, 25 Aug 2011 07:03:34 -0700 (PDT) X-Originating-IP: [87.139.40.39] In-Reply-To: <4E564DC5.3090600@php.net> References: <4E5619ED.40609@php.net> <4E5642F7.9060702@php.net> <4E564DC5.3090600@php.net> Date: Thu, 25 Aug 2011 16:03:34 +0200 Message-ID: To: Sebastian Bergmann Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=000e0cd5cba8010fb004ab54e563 Subject: Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor() From: kontakt@beberlei.de (Benjamin Eberlei) --000e0cd5cba8010fb004ab54e563 Content-Type: text/plain; charset=ISO-8859-1 Thanks for working on this Sebastian, its really appreciated! +1 from me! On Thu, Aug 25, 2011 at 3:27 PM, Sebastian Bergmann wrote: > 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/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --000e0cd5cba8010fb004ab54e563--