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.");