pajoye          Mon Oct  9 23:32:17 2006 UTC

  Modified files:              
    /phpdoc/en/reference/gmp/functions  gmp-init.xml 
  Log:
  - #38888, add octal description and a note about the default base
    from the gmp docs
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/gmp/functions/gmp-init.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/gmp/functions/gmp-init.xml
diff -u phpdoc/en/reference/gmp/functions/gmp-init.xml:1.5 
phpdoc/en/reference/gmp/functions/gmp-init.xml:1.6
--- phpdoc/en/reference/gmp/functions/gmp-init.xml:1.5  Wed Aug 18 14:15:16 2004
+++ phpdoc/en/reference/gmp/functions/gmp-init.xml      Mon Oct  9 23:32:17 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/gmp.xml, last change in rev 1.1 -->
   <refentry id="function.gmp-init">
    <refnamediv>
@@ -15,10 +15,16 @@
      </methodsynopsis>
     <para>
      Creates a GMP number from an integer or string. String
-     representation can be decimal or hexadecimal. In the latter case,
-     the string should start with <literal>0x</literal>.
+     representation can be decimal, hexadecimal or octal.
      Optional parameter <parameter>base</parameter> is available since
-     PHP 4.1.0.
+     PHP 4.1.0. Its default value is <literal>0</literal>.
+    </para>
+    <para>
+     The base may vary from 2 to 36. If base is 0 (default value), the
+     actual base is determined from the leading characters: if the first
+     two characters are <literal>0x</literal> or <literal>0X</literal>, 
+     hexadecimal is assumed, otherwise if the first character is "0", 
+     octal is assumed, otherwise decimal is assumed.
     </para>
     <para>
      <example>

Reply via email to