Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44632 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1367 invoked from network); 2 Jul 2009 10:42:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 10:42:49 -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; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.224 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.220.224 mail-fx0-f224.google.com Received: from [209.85.220.224] ([209.85.220.224:49999] helo=mail-fx0-f224.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/B0-32416-72F8C4A4 for ; Thu, 02 Jul 2009 06:42:48 -0400 Received: by fxm24 with SMTP id 24so1539256fxm.23 for ; Thu, 02 Jul 2009 03:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=kDC9AWffp5Y2DnHPBVZQ6ljxG9b5fAKaeoIis4d5Mk8=; b=SuBR2RRU/PQdmGLzOeYPaKIHN6gJP8ie6cnpEH2pTMRW/ywRI9Zp32FPB+6oUCfa05 7jEqz0vSByu+z20ZYNhYpXYNRsoavfGjhwo2NracwDcII0xWFrobHcP1fBgDLIxbfRvT pVO0FBFwjQs60Y0jMmog5TaMRSq+nyWpUCaFw= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=F/jvm0KQOj3D+4Q2r29GQN09WugPFJ2/YGS57gJ8Z7O8tK6A3pRr1xcYr5HV6e65oR JVW9TYkHmP5Zkx8ThU6uM9frxNU4tISn8UN2PtRARW6Q7WUHtV/s7MiCytc09a4IALHy 4mPZRTpHE6HCB/usGHQPKT3CptxwG1IrkhPDA= MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.204.102.14 with SMTP id e14mr10766802bko.209.1246531364881; Thu, 02 Jul 2009 03:42:44 -0700 (PDT) In-Reply-To: <4A4C7CE6.6070107@gmail.com> References: <4A4C7CE6.6070107@gmail.com> Date: Thu, 2 Jul 2009 12:42:44 +0200 X-Google-Sender-Auth: f5eec1576c1888ce Message-ID: <2dedb8a0907020342s5be2ee8aq44d59378e49aa8b9@mail.gmail.com> To: "Ionut G. Stan" Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3 From: kalle@php.net (Kalle Sommer Nielsen) Hi 2009/7/2 Ionut G. Stan : > Is it possible that instead of an E_RECOVERABLE_ERROR, an Exception to > be thrown? I don't know whether InvalidArgumentException satisfies the > semantics, > but it's a step in that direction. I don't think we should start changing the standard way of the engine to error out, having a custom error that checks for E_RECOVERABLE_ERROR can be made to throw an InvalidArgumentException within few lines of code/parsing. -- regrads, Kalle Sommer Nielsen kalle@php.net