Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26305 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96401 invoked by uid 1010); 3 Nov 2006 18:50:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96385 invoked from network); 3 Nov 2006 18:50:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Nov 2006 18:50:35 -0000 X-Host-Fingerprint: 83.160.219.156 korving.demon.nl Received: from [83.160.219.156] ([83.160.219.156:20889] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/33-07680-97F8B454 for ; Fri, 03 Nov 2006 13:50:35 -0500 Message-ID: To: internals@lists.php.net References: <7f3ed2c30611031000j2dc48a6amb7f04c8011442b56@mail.gmail.com> Date: Fri, 3 Nov 2006 19:49:09 +0100 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 83.160.219.156 Subject: Re: [PHP-DEV] [PATCH] Scalar type hinting ;) From: r.korving@xit.nl ("Ron Korving") If you ask me, scaler type hinting should try to do some auto-conversion. That way, the type hints would actually be useful. -- Ron PS: Congrats on rolling out PHP 5.2.0. I sincerely (without sarcasm) hope the manual will be updated soon (e.g. filter extension is still marked experimental and datetime classes have not been documented at all). "Pierre" wrote in message news:fe05d1540611031039qee11e7aicfe71868aa5d0588@mail.gmail.com... > 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