Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26304 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92183 invoked by uid 1010); 3 Nov 2006 18:46:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92167 invoked from network); 3 Nov 2006 18:46:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2006 18:46:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 81.169.182.136 cause and error) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from [81.169.182.136] ([81.169.182.136:51175] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EB/72-07680-0AE8B454 for ; Fri, 03 Nov 2006 13:46:56 -0500 Received: from localhost (strato.aixcept.de [81.169.182.136]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 5F145610293; Fri, 3 Nov 2006 19:46:52 +0100 (CET) Date: Fri, 3 Nov 2006 19:46:49 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <179799177.20061103194649@marcus-boerger.de> To: Pierre Cc: Hannes Magnusson , internals@lists.php.net In-Reply-To: References: <7f3ed2c30611031000j2dc48a6amb7f04c8011442b56@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] Scalar type hinting ;) From: helly@php.net (Marcus Boerger) Hello Pierre, i think it would only make sense if the automatic type conversion is correctly supported but then why use it at all? That by the way is the reason we declined it in the past several times. best regards marcus Friday, November 3, 2006, 7:39:41 PM, you wrote: > Hello, > On 11/3/06, Hannes Magnusson wrote: >> Hello all! >> >> Attached is a patch (against 5_2) to allow scalar type hinting \o/ >> >> I realize that maaany will be against it so I won't be pushing it (a >> lot), just wanted the patch archived somewhere :) > -1 unless we add a "strongly typed" mode in php and allow scalar type > hinting only in this mode. But thinking about php raising errors when > I pass string("1") instead of int(1 )is not really what I consisder as > a nice addition :) > --Pierre Best regards, Marcus