nlopess         Sun Oct 17 07:08:04 2004 EDT

  Modified files:              
    /phpdoc/en/reference/info/functions phpversion.xml 
  Log:
  fix #30459: document the optional parameter
  
http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/phpversion.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/info/functions/phpversion.xml
diff -u phpdoc/en/reference/info/functions/phpversion.xml:1.3 
phpdoc/en/reference/info/functions/phpversion.xml:1.4
--- phpdoc/en/reference/info/functions/phpversion.xml:1.3       Fri Feb 21 23:24:24 
2003
+++ phpdoc/en/reference/info/functions/phpversion.xml   Sun Oct 17 07:08:04 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/info.xml, last change in rev 1.2 -->
   <refentry id="function.phpversion">
    <refnamediv>
@@ -10,11 +10,13 @@
     <title>Description</title>
      <methodsynopsis>
       <type>string</type><methodname>phpversion</methodname>
-      <void/>
+      <methodparam 
choice="opt"><type>string</type><parameter>extension</parameter></methodparam>
      </methodsynopsis>
     <para>
      Returns a string containing the version of the currently running
-     PHP parser.
+     PHP parser. If the optional <parameter>extension</parameter> parameter is
+     specified, <function>phpversion</function> returns the version of that
+     extension, or &false; if there is no version information associated.
     </para>
     <note>
      <para>
@@ -30,6 +32,9 @@
 <?php
 // prints e.g. 'Current PHP version: 4.1.1'
 echo 'Current PHP version: ' . phpversion();
+
+// prints e.g. '2.0' or nothing if the extension isn't enabled
+echo phpversion('tidy');
 ?>
 ]]>
       </programlisting>

Reply via email to