#40582 [NEW]: phpversion('extension_name') return false

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40582 [NEW]: phpversion('extension_name') return false

    From: Ox41464b at satria dot web dot id
    Operating system: Irrelevant
    PHP version: 4.4.5
    PHP Bug Type: PHP options/info functions
    Bug description: phpversion('extension_name') return false

    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 bug report at [url]http://bugs.php.net/?id=40582&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40582&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40582&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40582&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40582&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40582&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40582&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40582&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40582&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40582&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40582&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40582&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40582&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40582&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40582&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40582&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40582&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40582&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40582&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40582&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40582&r=mysqlcfg[/url]
    Ox41464b at satria dot web dot id Guest

  2. Similar Questions and Discussions

    1. #39009 [Opn]: phpversion('imap') return nothing
      ID: 39009 User updated by: mad at dactar dot ch -Summary: phpinfo('imap') return nothing Reported By: mad at dactar...
    2. #25862 [Opn->WFx]: mail() always return FALSE
      ID: 25862 Updated by: iliaa@php.net Reported By: thouraud at bondy dot ird dot fr -Status: Open +Status: ...
    3. #25862 [Fbk->Opn]: mail() always return FALSE
      ID: 25862 User updated by: thouraud at bondy dot ird dot fr Reported By: thouraud at bondy dot ird dot fr -Status: ...
    4. #25862 [Opn->Fbk]: mail() always return FALSE
      ID: 25862 Updated by: sniper@php.net Reported By: thouraud at bondy dot ird dot fr -Status: Open +Status: ...
    5. #25862 [NEW]: mail() always return FALSE
      From: thouraud at bondy dot ird dot fr Operating system: solaris 9 PHP version: 4.3.3 PHP Bug Type: Mail related Bug...
  3. #2

    Default #40582 [Opn->Bgs]: phpversion('extension_name') return false

    ID: 40582
    Updated by: [email]tony2001@php.net[/email]
    Reported By: Ox41464b at satria dot web dot id
    -Status: Open
    +Status: Bogus
    Bug Type: PHP options/info functions
    Operating System: Irrelevant
    PHP Version: 4.4.5
    New Comment:

    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.
    [url]http://php.net/phpversion[/url]


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

    [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 [url]http://bugs.php.net/?id=40582&edit=1[/url]
    tony2001@php.net Guest

  4. #3

    Default #40582 [Bgs]: phpversion('extension_name') return false

    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]tony2001@php.net[/email]

    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.
    [url]http://php.net/phpversion[/url]

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

    [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 [url]http://bugs.php.net/?id=40582&edit=1[/url]
    Ox41464b at satria dot web dot id Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139