php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30459 phpversion() doesn't document optional parameter
Submitted: 2004-10-16 17:30 UTC Modified: 2004-10-17 13:14 UTC
From: cellog@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
 [2004-10-16 17:30 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-17 13:14 UTC] nlopess@php.net
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.


 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=19dda78d0d1763811357cbe693784ea5d70374bd
Log: fix #30459: document the optional parameter
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Aug 12 09:00:03 2025 UTC