Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86156 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23193 invoked from network); 11 May 2015 11:01:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 May 2015 11:01:27 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.175 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.217.175 mail-lb0-f175.google.com Received: from [209.85.217.175] ([209.85.217.175:35188] helo=mail-lb0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/91-03799-60C80555 for ; Mon, 11 May 2015 07:01:26 -0400 Received: by lbbuc2 with SMTP id uc2so90935033lbb.2 for ; Mon, 11 May 2015 04:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=B7fsjb8rPgJIm7gBYGhnyQpyFn7VaNNjU8YmGKTJF8M=; b=qSE1JKn833qnF0wkZpQthrEUC8Y5qK8+hS/PaugHTbm8Mv3rzkgCFZ3s+FP+Yv2gLt qvXUblT2V9cRlRp4QE/dkJkWamCcnedz+SuUT52iH/Auff+poPxshY6l4AgbxESWi2oT ApadmU1av7DeetxGavoNwjfdZI9iuztR0Gfps7Ino4aST9ePFNM0Bt6tEj/hWhsy8LFR x4j3/mFq4GtLk/cjf4bKZaTYkL+H/CEcKVcdd3ME1K9zGyRq1R7w1b5MDyKDFDOat3KG 6Yt3vTS1ifd7sVopZk6GEEKLYfB58wTagcRoVjbqIZ6tgJwYHY4TGstSx3sgZ1s7AYjO zbxQ== X-Received: by 10.112.189.102 with SMTP id gh6mr7529856lbc.115.1431342083611; Mon, 11 May 2015 04:01:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 11 May 2015 11:01:23 +0000 Message-ID: To: Yasuo Ohgaki , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c36dc47221ee0515cc4cac Subject: Re: [PHP-DEV] Re: Adding "numeric" type hint From: arvids.godjuks@gmail.com (Arvids Godjuks) --001a11c36dc47221ee0515cc4cac Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =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 reduce 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... --001a11c36dc47221ee0515cc4cac--