]> git.gsnw.org Git - m0n0chwall.git/commitdiff
Trying to fix the type conversion in PHP by using explicit float
authorjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Mon, 27 Mar 2006 18:15:58 +0000 (18:15 +0000)
committerjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Mon, 27 Mar 2006 18:15:58 +0000 (18:15 +0000)
git-svn-id: https://svn.m0n0.ch/wall/trunk@109 e36fee2c-cc09-0410-a7cc-ebac5c6737de

phpconf/inc/radius.inc

index c1a6fc343943efc734efa566dec8446742992471..e27632be3d149ba8d1d9b7f4a6d50c250c9acea9 100644 (file)
@@ -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);