Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54948 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83914 invoked from network); 25 Aug 2011 16:18:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 16:18:46 -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.176 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.215.176 mail-ey0-f176.google.com Received: from [209.85.215.176] ([209.85.215.176:49501] helo=mail-ey0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/C0-13031-4E5765E4 for ; Thu, 25 Aug 2011 12:18:45 -0400 Received: by eyz10 with SMTP id 10so1989853eyz.35 for ; Thu, 25 Aug 2011 09:18:41 -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=T6pwumoscapz9ucH3ZjFNodErw+Nl5EDMyuEO+NOJbw=; b=oXcWLtqUrIOZgJoP9MbprLbQ5wVBV4Yqy5CKKgnarpXmUAf7kZIRrPE6vrNKNQ3zrT 1gFIPyaU29KncwqAG6YRkNUSaENFop/vZR5wFjjouFRP+Lmuco5NVJZypdG5qrzvxtpb rYMZ0aXiODaEcn0xwbaActiSO2cq2M1qR2n+g= MIME-Version: 1.0 Received: by 10.213.3.16 with SMTP id 16mr470224ebl.106.1314289121164; Thu, 25 Aug 2011 09:18:41 -0700 (PDT) Sender: patrick.allaert@gmail.com Received: by 10.213.31.207 with HTTP; Thu, 25 Aug 2011 09:18:40 -0700 (PDT) In-Reply-To: References: <4E5619ED.40609@php.net> <4E5642F7.9060702@php.net> Date: Thu, 25 Aug 2011 18:18:40 +0200 X-Google-Sender-Auth: N3-UtIvNMS7Twel1aeH-ewEguQE 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 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. Well, of course I highly second the opinion that not making distinction and fixing possible bugs in internal classes is a much better approach.