Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6740923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:39:51+00:00 2026-05-26T11:39:51+00:00

Having run the following: foreach(get_loaded_extensions() as $name){ $extensions[strtolower($name)] = phpversion($name); } var_dump($extensions); I notice

  • 0

Having run the following:

foreach(get_loaded_extensions() as $name){
    $extensions[strtolower($name)] = phpversion($name);
}
var_dump($extensions);

I notice that some of the loaded extensions don’t show a version, having false instead, for instance:

'pcre' => boolean false

However, when I hit up phpinfo(), it shows a version number: enter image description here

Why isn’t the phpversion() function fetching the correct results? I understand in this instance I could simply pull PCRE_VERSION, but needing to do so for some but not all extensions is silly; gd shows false too.


Edit: Fix;

foreach(get_loaded_extensions() as $name){
    $extensions[strtolower($name)] = phpversion($name);
}
$extensions = array_replace($extensions, array(
    'iconv' => ICONV_VERSION,
    'pcre' => PCRE_VERSION,
    'libxml' => LIBXML_DOTTED_VERSION,
    'gd' => GD_VERSION,
    // others i may be missing, will get to it
));

Edit: Here’s the full dump and the phpinfo() output, just for giggles:

array
  'core' => string '5.3.8' (length=5)
  'bcmath' => boolean false
  'calendar' => boolean false
  'com_dotnet' => string '0.1' (length=3)
  'ctype' => boolean false
  'date' => string '5.3.8' (length=5)
  'ereg' => boolean false
  'filter' => string '0.11.0' (length=6)
  'ftp' => boolean false
  'hash' => string '1.0' (length=3)
  'iconv' => boolean false
  'json' => string '1.2.1' (length=5)
  'mcrypt' => boolean false
  'spl' => string '0.2' (length=3)
  'odbc' => string '1.0' (length=3)
  'pcre' => boolean false
  'reflection' => string '$Revision: 313665 $' (length=19)
  'session' => boolean false
  'standard' => string '5.3.8' (length=5)
  'mysqlnd' => string 'mysqlnd 5.0.8-dev - 20102224 - $Revision: 310735 $' (length=50)
  'tokenizer' => string '0.1' (length=3)
  'zip' => string '1.9.1' (length=5)
  'zlib' => string '1.1' (length=3)
  'libxml' => boolean false
  'dom' => string '20031129' (length=8)
  'pdo' => string '1.0.4dev' (length=8)
  'bz2' => boolean false
  'simplexml' => string '0.1' (length=3)
  'wddx' => boolean false
  'xml' => boolean false
  'xmlreader' => string '0.1' (length=3)
  'xmlwriter' => string '0.1' (length=3)
  'apache2handler' => boolean false
  'phar' => string '2.0.1' (length=5)
  'mbstring' => boolean false
  'exif' => string '1.4 $Id: exif.c 314376 2011-08-06 14:47:44Z felipe $' (length=52)
  'gd' => boolean false
  'gettext' => boolean false
  'imap' => boolean false
  'mysql' => string '1.0' (length=3)
  'mysqli' => string '0.1' (length=3)
  'pdo_mysql' => string '1.0.2' (length=5)
  'pdo_odbc' => string '1.0.1' (length=5)
  'pdo_sqlite' => string '1.0.1' (length=5)
  'soap' => boolean false
  'sockets' => boolean false
  'sqlite' => string '2.0-dev' (length=7)
  'sqlite3' => string '0.7-dev' (length=7)
  'tidy' => string '2.0' (length=3)
  'xmlrpc' => string '0.51' (length=4)
  'mhash' => boolean false
  'xdebug' => string '2.1.1' (length=5)

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:39:52+00:00Added an answer on May 26, 2026 at 11:39 am

    phpversion() returns the version of that extension, or FALSE if there
    is no version information associated or the extension isn’t enabled.

    What you saw in phpinfo() is not the version information of the extension but the c-client version of the library. The prce extension itself has no version information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run the following query, and I'm having trouble with the wildcard.
I'm having two jquery's that I run and I want to combine them both
I'm having working on a Rails application that is supposed to run on an
I'm having trouble merging two PDF files with pyPdf. When I run the following
I'm having a table row selection problem with JXTable. If I run the following
I have some utility methods that use Microsoft.Web.Administration.ServerManager that I've been having some issues
I am using pdb to examine a script having called run -d in an
Okay this is my first WPF app and I am having a hard run
Having successfully installed opencv 2.0 with python bindings I'm starting to run into trouble
I've run into problems on numerous occasions of users not having one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.