From 5e7a0cfa39c348b7adb37707cdd97f497fe1805d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Oct 2020 02:06:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Http/HttpParams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Http/HttpParams.php b/HttpServer/Http/HttpParams.php index 743af81c..0eb58ee6 100644 --- a/HttpServer/Http/HttpParams.php +++ b/HttpServer/Http/HttpParams.php @@ -220,7 +220,7 @@ class HttpParams if (is_null($int)) { $length = 0; } else { - $length = strlen(floatval($int)); + $length = strlen((string)$int); } if (!is_numeric($int) || intval($int) != $int) { throw new RequestException("The request parameter $name must integer.");