Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54947 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82645 invoked from network); 25 Aug 2011 16:16:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 16:16:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; 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:49376] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/70-13031-075765E4 for ; Thu, 25 Aug 2011 12:16:49 -0400 Received: by ewy2 with SMTP id 2so1106877ewy.29 for ; Thu, 25 Aug 2011 09:16:45 -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; bh=wqd0M3RBaD1iGbPCt2uMeCVbcIYXcvtLVlSZQm3T6hk=; b=vsZuFZYH0PJfeqTSd6UhMohg4wDvaj1zSUoBvt0zKyv2e+uFttzPyiw6CLYvca0sqU GSM4B7tLjgd0swSRL08WLmEwywy1v12uuM6+wbADPbRhG9lPt4vDXouDBsrlke3w3rIe TF6Z4ZFjF05uyeLLkE9HtWs7f8TNBjIuwBbnk= MIME-Version: 1.0 Received: by 10.213.34.72 with SMTP id k8mr486492ebd.30.1314289005664; Thu, 25 Aug 2011 09:16:45 -0700 (PDT) Sender: patrick.allaert@gmail.com Received: by 10.213.31.207 with HTTP; Thu, 25 Aug 2011 09:16:45 -0700 (PDT) In-Reply-To: References: <4E5619ED.40609@php.net> <4E5642F7.9060702@php.net> Date: Thu, 25 Aug 2011 18:16:45 +0200 X-Google-Sender-Auth: s3CpGykcZ03WdHQgdRc1WJfMRq8 Message-ID: To: Gustavo Lopes Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor() From: patrickallaert@php.net (Patrick ALLAERT) 2011/8/25 Gustavo Lopes : > You could fetch the parent and do the same check, and so on. Checking only the topmost should be enough if traversing the whole inheritance could be avoided. > 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. > > > -- > Gustavo Lopes > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php