Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34397 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85175 invoked by uid 1010); 4 Jan 2008 09:02:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85160 invoked from network); 4 Jan 2008 09:02:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2008 09:02:51 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; 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:33711] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/63-20810-A36FD774 for ; Fri, 04 Jan 2008 04:02:51 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m0492klH022679; Fri, 4 Jan 2008 10:02:46 +0100 Date: Fri, 4 Jan 2008 10:02:46 +0100 (CET) X-X-Sender: derick@kossu.ez.no To: Sam Barrow cc: Stanislav Malyshev , Brian Moon , internals@lists.php.net In-Reply-To: <1199406783.5889.10.camel@e-vectra> Message-ID: References: <200801031903.01980.tomi@cumulo.fi> <1199380881.15292.11.camel@sbarrow-desktop> <20080103172813.GQ7861@mint.phcomp.co.uk> <477D2B40.9010302@fischer.name> <477D2CDB.3000005@zend.com> <477D452A.9090906@zend.com> <1199392531.15292.64.camel@sbarrow-desktop> <477D4ACF.3030006@zend.com> <1199395138.15292.72.camel@sbarrow-desktop> <477D58ED.6030101@zend.com> <477D5A8A.4080903@dealnews.com> <477D61F2.3080603@zend.com> <1199406783.5889.10.camel@e-vectra> 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: > It doesn't disable type conversion unless you specifically tell it to. > Plus the fact that if it issues an E_WARNING, your application will not > necessarily stop execution. Stop right here for a moment. Type hints currently throw an E_RECOVERABLE_ERROR, for obvious reasons. That means, that scalar type hints should do so as well - *without* auto conversion. We should not make this inconsistent or we really fucked it up. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org