Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54935 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29409 invoked from network); 25 Aug 2011 12:47:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2011 12:47:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:44606] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/35-00227-E44465E4 for ; Thu, 25 Aug 2011 08:47:11 -0400 Received: by vwl1 with SMTP id 1so2133989vwl.29 for ; Thu, 25 Aug 2011 05:47:07 -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 :content-transfer-encoding; bh=uoQBUx5MYnrrbeq5sBu6W0i3m9q1GYhB30BWZFhwWS0=; b=vYpv3XdC2X7eRCre1yPz3ReeOV7i6unbdrWPK4tcnEITnCj2YRMoKPAXggp541sDDk N6Bp9JFFfc7C11UNlsEA8COlyQm+wzNGQGxeY7Z6ybM0nj2vlGMJVnKQSdMtmMlSBz0h 3f/V9f2MmZGOysoVg+ZLZ2LwOM/sPzx/yynWg= MIME-Version: 1.0 Received: by 10.220.38.70 with SMTP id a6mr2042969vce.1.1314276426886; Thu, 25 Aug 2011 05:47:06 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.220.158.213 with HTTP; Thu, 25 Aug 2011 05:47:06 -0700 (PDT) In-Reply-To: <4E5642F7.9060702@php.net> References: <4E5619ED.40609@php.net> <4E5642F7.9060702@php.net> Date: Thu, 25 Aug 2011 14:47:06 +0200 X-Google-Sender-Auth: u4VE-q5zRDOb5lxKqEfoHE9YWjI Message-ID: To: Sebastian Bergmann Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] ReflectionClass::newInstanceWithoutConstructor() From: kalle@php.net (Kalle Sommer Nielsen) Hi 2011/8/25 Sebastian Bergmann : > =A0Good point. How would I implement such a check? Speaking of which, wouldn't it be easier to check all our internal classes for such failures and fix them accordingly with this addition (Fix the dont-crash-without-calling-constructor)? We could do like that of above and cast an exception instead of E_RECOVERABLE_ERROR (as I believe is being cast now) in 5.4. --=20 regards, Kalle Sommer Nielsen kalle@php.net