Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54945 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73620 invoked from network); 25 Aug 2011 15:13:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 15:13:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:46970] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/1E-00227-A86665E4 for ; Thu, 25 Aug 2011 11:13:16 -0400 Received: by gyd5 with SMTP id 5so2289744gyd.29 for ; Thu, 25 Aug 2011 08:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=scDc5FIzfgcbVj8WES4UujdKcFozwxkKIlRgNLX8FDQ=; b=gQeFHskaeT6jStKXEUu9cBxkYL0KZtLOXjVtRlKv+yMP/BakRoNyEwC9MiUukXoPla euJSRuZu0+Y8uMWVZiflWtFuQZDfNxbe1yr4Dw21NaWFis/BQFuIFhq81PKGp+4qMhmY n+RRbwt/0vYT3suwoiHRvl3k1fZ/ISm1KUtb0= Received: by 10.146.223.35 with SMTP id v35mr6844593yag.24.1314285191122; Thu, 25 Aug 2011 08:13:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.170.10 with HTTP; Thu, 25 Aug 2011 08:12:51 -0700 (PDT) In-Reply-To: References: <4E5619ED.40609@php.net> <4E5642F7.9060702@php.net> <4E564DC5.3090600@php.net> Date: Thu, 25 Aug 2011 12:12:51 -0300 Message-ID: To: Benjamin Eberlei Cc: Sebastian Bergmann , internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor() From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") Sebastian, This is a hidden gem for us! =3DD Thanks a lot for putting your effort into this. Cheers, On Thu, Aug 25, 2011 at 11:03 AM, Benjamin Eberlei wr= ote: > Thanks for working on this Sebastian, its really appreciated! +1 from me! > > On Thu, Aug 25, 2011 at 3:27 PM, Sebastian Bergmann wr= ote: > >> 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 yo= u >>> might be able to just check whether ce.create_object is not NULL, becau= se >>> 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. >>> >> >> =C2=A0I updated the patch accordingly. Thanks! >> >> >> -- >> Sebastian Bergmann =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0Co-Founder and Principal Consultant >> http://sebastian-bergmann.de/ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://thePHP.cc/ >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > --=20 Guilherme Blanco Mobile: +55 (11) 8118-4422 MSN: guilhermeblanco@hotmail.com S=C3=A3o Paulo - SP/Brazil