Re: Re: Adding "numeric" type hint

From: Date: Mon, 11 May 2015 11:01:23 +0000
Subject: Re: Re: Adding "numeric" type hint
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-86156@lists.php.net to get a copy of this message
пн, 11 Май 2015, 10:21, Yasuo Ohgaki <yohgaki@ohgaki.net>: 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...

« previous php.internals (#86156) next »