From:             [EMAIL PROTECTED]
Operating system: n/a
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  phpversion() doesn't document optional parameter

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 bug report at http://bugs.php.net/?id=30459&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30459&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30459&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30459&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30459&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30459&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30459&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30459&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30459&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30459&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30459&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30459&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30459&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30459&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30459&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30459&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30459&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30459&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30459&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30459&r=mysqlcfg

Reply via email to