Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83085 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66807 invoked from network); 18 Feb 2015 15:34:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 15:34:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:27846] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/02-56339-F01B4E45 for ; Wed, 18 Feb 2015 10:34:39 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 0EDAF4B0277; Wed, 18 Feb 2015 16:34:16 +0100 (CET) Reply-To: To: "'Zeev Suraski'" , "'Robert Stoll'" Cc: "'Sara Golemon'" , "'PHP internals'" References: <54E3E27B.2010903@lerdorf.com> <2f99c47df51fa6c73131032ec50fade0@mail.gmail.com> <005201d04b6c$1122d130$33687390$@tutteli.ch> <34ad95db84909d07feb98dbe76f7d52c@mail.gmail.com> In-Reply-To: <34ad95db84909d07feb98dbe76f7d52c@mail.gmail.com> Date: Wed, 18 Feb 2015 16:34:33 +0100 Message-ID: <032e01d04b90$65c1d500$31457f00$@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKz6wpj8b81mnwJq1LfxWbU4ZJyQgGjcksIAbrU1N8Bn0wufQGLyLi6ApOAQNgCKs4UBZrVDEfQ Content-Language: fr X-Antivirus: avast! (VPS 150218-0, 18/02/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Scalar Type Hints v0.4 From: francois@php.net (=?utf-8?Q?Fran=C3=A7ois_Laupretre?=) > De : Zeev Suraski [mailto:zeev@zend.com] > > If we do implement the single-mode, stricter-than-pure-weak and > weaker-than-pure-strict ruleset, we could introduce a new set of = conversion > functions, along the lines of safe_int(), that would follow the same = rules > as the corresponding type hints (i.e. accept (int) 32, (string) "32", = but > not (float) 32.7, or (string) "32 dogs"). Nice. I like it : create a set of userland functions aligned on = zend_parse_arg_xxx(). Just remains to bikeshed on function names :) Regards Fran=C3=A7ois