Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86013 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57805 invoked from network); 29 Apr 2015 10:04:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2015 10:04:03 -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:26101] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/91-38700-09CA0455 for ; Wed, 29 Apr 2015 06:04:01 -0400 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 97FF34B02BB; Wed, 29 Apr 2015 12:03:37 +0200 (CEST) Reply-To: To: "'Yasuo Ohgaki'" , References: In-Reply-To: Date: Wed, 29 Apr 2015 12:03:54 +0200 Message-ID: <00a501d08263$cda30310$68e90930$@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: AQGprWDUafcXlqN0b4Io4VtLosTXhJ2xamUQ Content-Language: fr X-Antivirus: avast! (VPS 150429-0, 29/04/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Adding "numeric" type hint From: francois@php.net (=?utf-8?Q?Fran=C3=A7ois_Laupretre?=) > De : yohgaki@gmail.com [mailto:yohgaki@gmail.com] De la part de Yasuo > Ohgaki >=20 > External data can have any form of numbers. > Current PHP can handle them as "string". However PHP7's type hint = cannot > handle numeric data well because it only has "int" and "float" hints. >=20 > http://3v4l.org/6J0bZ I don't understand the error message. PHP 7 is supposed to accept = numeric strings for 'int'. Is it too big for an int ? In this case, it = is a conversion failure, the error message is wrong and should be = replaced. About 32/64 bit integers, this is another subject that was = partially hidden, as many others, by the STH war. Regards Fran=C3=A7ois