From e3cc4f2fd2eb3c455f65cc9687602a42b4ce3b59 Mon Sep 17 00:00:00 2001 From: jdegraeve Date: Mon, 27 Mar 2006 18:15:58 +0000 Subject: [PATCH] Trying to fix the type conversion in PHP by using explicit float git-svn-id: https://svn.m0n0.ch/wall/trunk@109 e36fee2c-cc09-0410-a7cc-ebac5c6737de --- phpconf/inc/radius.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpconf/inc/radius.inc b/phpconf/inc/radius.inc index c1a6fc3..e27632b 100644 --- a/phpconf/inc/radius.inc +++ b/phpconf/inc/radius.inc @@ -198,7 +198,8 @@ class Auth_RADIUS extends PEAR { switch ($type) { case 'integer': - return radius_put_int($this->res, $attrib, $value); + // Fix a conversion error so we should be able to handle 4GB values + return radius_put_int($this->res, $attrib, (float)$value); case 'addr': return radius_put_addr($this->res, $attrib, $value); -- 2.43.0