#30459 [Opn->Csd]: phpversion() doesn't document optional parameter
| From: | nlopess@php.net | Date: | Sun, 17 Oct 2004 11:14:17 +0000 |
| Subject: | #30459 [Opn->Csd]: phpversion() doesn't document optional parameter | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969364564@lists.php.net to get a copy of this message | ||
ID: 30459
Updated by: nlopess@php.net
Reported By: cellog@php.net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: n/a
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-10-16 17:30:37] cellog@php.net
Description:
------------
phpversion() has had an optional parameter since really early versions
of php, and can be used to retrieve the version of a loaded extension
<?php
echo phpversion() . "\n";
echo phpversion('mysql') . "\n";
echo phpversion('xmlrpc') . "\n";
?>
Note that it will return false for extensions that have no versioning
information like mysql
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30459&edit=1