nlopess         Thu Dec 16 05:56:58 2004 EDT

  Modified files:              
    /phpdoc/en/reference/info/functions ini-get.xml 
  Log:
  change code, by Derick's suggestion
  
http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/ini-get.xml?r1=1.12&r2=1.13&ty=u
Index: phpdoc/en/reference/info/functions/ini-get.xml
diff -u phpdoc/en/reference/info/functions/ini-get.xml:1.12 
phpdoc/en/reference/info/functions/ini-get.xml:1.13
--- phpdoc/en/reference/info/functions/ini-get.xml:1.12 Wed Dec 15 15:20:28 2004
+++ phpdoc/en/reference/info/functions/ini-get.xml      Thu Dec 16 05:56:56 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
 <!-- splitted from ./en/functions/info.xml, last change in rev 1.64 -->
   <refentry id="function.ini-get">
    <refnamediv>
@@ -62,19 +62,16 @@
     $val = trim($val);
     $last = strtolower($val{strlen($val)-1});
     switch($last) {
-        case 'k':
-            return (int) $val * 1024;
-            break;
-        case 'm':
-            return (int) $val * 1048576;
-            break;
         // The 'G' modifier is available since PHP 5.1.0
         case 'g':
-            return (int) $val * 1073741824;
-            break;
-        default:
-            return $val;
+            $val *= 1024;
+        case 'm':
+            $val *= 1024;
+        case 'k':
+            $val *= 1024;
     }
+
+    return $val;
 }
 
 ?>

Reply via email to