Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34398 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86358 invoked by uid 1010); 4 Jan 2008 09:04:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86342 invoked from network); 4 Jan 2008 09:04:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 09:04:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:36796] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/B3-20810-9B6FD774 for ; Fri, 04 Jan 2008 04:04:57 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m0494jB8023022; Fri, 4 Jan 2008 10:04:45 +0100 Date: Fri, 4 Jan 2008 10:04:45 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Sam Barrow cc: Markus Fischer , Jochem Maas , Tomi Kaistila , internals@lists.php.net In-Reply-To: <1199396862.15292.88.camel@sbarrow-desktop> Message-ID: References: <200801031903.01980.tomi@cumulo.fi> <1199380881.15292.11.camel@sbarrow-desktop> <200801032019.03957.tomi@cumulo.fi> <477D2E51.3080101@iamjochem.com> <1199386464.15292.16.camel@sbarrow-desktop> <477D5593.5050407@fischer.name> <1199396862.15292.88.camel@sbarrow-desktop> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] RE: Optional scalar type hinting From: derick@php.net (Derick Rethans) On Thu, 3 Jan 2008, Sam Barrow wrote: > On Thu, 2008-01-03 at 22:37 +0100, Markus Fischer wrote: > > > Of course, Jochem, you're right. Exceptions would be nice. > > WrongArgumentException, InvalidWhateverException, ... > > That would be very nice. The full blown suite of exception error > handlers could be a future project, depending on code contributors and > community support. > > As for my patch, I think we can all agree on E_WARNING. Definitely not. Type hints now throw E_RECOVERABLE_ERROR, and that should be the same for any other typehinting system that we add. Derick