ID:               40582
 User updated by:  Ox41464b at satria dot web dot id
 Reported By:      Ox41464b at satria dot web dot id
 Status:           Bogus
 Bug Type:         PHP options/info functions
 Operating System: Irrelevant
 PHP Version:      4.4.5
 New Comment:

Looks like most of extensions loaded on mine is without Info
Should its reported to each extensions maintainer?

Code:
$e = get_loaded_extensions();
foreach($e as $ext_name)
{
        $v = phpversion($ext_name);
        if ($v) echo $ext_name . " version: ". $v;
        else echo $ext_name . " version: Not avaiable";
}

Result:
xml version: Not avaiable
tokenizer version: 0.1
standard version: 4.4.4
sockets version: Not avaiable
session version: Not avaiable
posix version: Not avaiable
overload version: Not avaiable
mysql version: Not avaiable
mbstring version: Not avaiable
iconv version: Not avaiable
gettext version: Not avaiable
gd version: Not avaiable
ftp version: Not avaiable
curl version: Not avaiable
ctype version: Not avaiable
calendar version: Not avaiable
bcmath version: Not avaiable
zlib version: 1.1
pcre version: Not avaiable
openssl version: Not avaiable
apache version: Not avaiable
ionCube Loader version: Not avaiable
Zend Optimizer version: Not avaiable


Previous Comments:
------------------------------------------------------------------------

[2007-02-21 17:36:01] [EMAIL PROTECTED]

If the optional extension parameter is specified, phpversion() returns
the version of that extension, 
**or FALSE if there is no version information associated** or the
extension isn't enabled.
http://php.net/phpversion

------------------------------------------------------------------------

[2007-02-21 17:30:10] Ox41464b at satria dot web dot id

Description:
------------
phpversion didnt works like it should

Reproduce code:
---------------
<?php
print_r(get_loaded_extensions());
var_dump(phpversion('gd'));
?>

Expected result:
----------------
others... except false

Actual result:
--------------
/*
Current Result:
Array
(
    [0] => xml
    [1] => tokenizer
    [2] => standard
    [3] => sockets
    [4] => session
    [5] => posix
    [6] => overload
    [7] => mysql
    [8] => mbstring
    [9] => iconv
    [10] => gettext
    [11] => gd
    [12] => ftp
    [13] => curl
    [14] => ctype
    [15] => calendar
    [16] => bcmath
    [17] => zlib
    [18] => pcre
    [19] => openssl
    [20] => apache
    [21] => ionCube Loader
    [22] => Zend Optimizer
)
bool(false)
*/



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40582&edit=1

Reply via email to