Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32649 invoked from network); 11 May 2015 14:06:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2015 14:06:07 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.182 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.220.182 mail-qk0-f182.google.com Received: from [209.85.220.182] ([209.85.220.182:35154] helo=mail-qk0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/72-03799-E47B0555 for ; Mon, 11 May 2015 10:06:06 -0400 Received: by qkhg7 with SMTP id g7so87123214qkh.2 for ; Mon, 11 May 2015 07:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ouwXiD9y6OX5twCjyGzaFuYk/ycjnd8ZvNwybE0jGD8=; b=fBVuzblWYc2bH/3xbWRQdoLy+Uj3/npO7q5WCZ6pb+YagRxsPmyyzWZ+vCBkA3VLBc AA8gLhOGZYblpIxtluQAa9jCrVOZDOChEvaheWkUMXerrXRJFBe7qU0wtGoZcNT35uGe YrBBvKyoCl31a2HyMbjKd/3AENmm8E8VQADWL04X6PGZQxOvW4/dBm7Wx7zQNYRxr7Q4 ZIpFVpicIPv6YE7HRWhC2j7GxL3HdcGHMwhA6k4qfnzkGXXJYbxnWv4J+5dLnoSwY50p vFrWmYC5L0k/fJWq+rJOfDKi65DW7+bdV6HR9dpAYfrfacjMQ2cQUyvsX5kvEb6vIb+t yemg== MIME-Version: 1.0 X-Received: by 10.140.149.147 with SMTP id 141mr14240228qhv.17.1431353164269; Mon, 11 May 2015 07:06:04 -0700 (PDT) Received: by 10.96.127.166 with HTTP; Mon, 11 May 2015 07:06:04 -0700 (PDT) Received: by 10.96.127.166 with HTTP; Mon, 11 May 2015 07:06:04 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 May 2015 21:06:04 +0700 Message-ID: To: Arvids Godjuks Cc: PHP internals , Yasuo Ohgaki Content-Type: multipart/alternative; boundary=001a11376816e78eb20515cee04b Subject: Re: [PHP-DEV] Re: Adding "numeric" type hint From: pierre.php@gmail.com (Pierre Joye) --001a11376816e78eb20515cee04b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On May 11, 2015 6:01 PM, "Arvids Godjuks" wrote: > > =D0=BF=D0=BD, 11 =D0=9C=D0=B0=D0=B9 2015, 10:21, Yasuo Ohgaki : > > Hi all, > > > I've never wrote my blog in English, but I wrote one because peice by piece > discussion is not going to anywhere. > > http://blog.ohgaki.net/dont-use-php7-type-hint-for-external-data > > How many of you think current scalar type hint is useful enough to interact > with database/json/xml/yaml/rest/etc? We need "numeric" hint at least. IMHO. > > If not, we need "large warning sign" in documentation as a last resort at > least. > > Regards, > > P.S. We may be better to declare 32 bit CPU support EOL by PHP 7 to reduc= e > the impact. We'll have the same issue when 128 bit CPU or 128 bits IEEE 754 > float > became in common, though. > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > > > Hello, I have read through your blog post, and I agreed on the issue > earlier, nut I have a question that bugs me for a while: what DoS issue are > you talking about? I tried to imagine any scenario that can lead to a DoS > wuith a type hint and can't think of any happening... If any it is a bug in PHP, php driver or the likes. About killing 32bit, why not, while there are still some needs for it. But definitely not for this reason, which is totally unrelated. Cheers, Pierre --001a11376816e78eb20515cee04b--