php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48815 Enhance php -m and phpinfo() output to show how extensions are loaded.
Submitted: 2009-07-06 12:39 UTC Modified: 2011-01-23 21:07 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: RQuadling at GMail dot com Assigned:
Status: Open Package: PHP options/info functions
PHP Version: * OS: *
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-07-06 12:39 UTC] RQuadling at GMail dot com
Description:
------------
Not sure how this would work, but a small feature that I can see being 
of use is to be able to show how an extension is loaded.

Built-in, ini or dl() I think are the three ways in which an extension 
can be loaded.

Currently (CLI) php -m shows ...

[PHP Modules]
bcmath
bz2
calendar
com_dotnet
Core
ctype
curl
date
dom

Showing something like ...

[PHP Modules]
Built-in    :             : bcmath
php-cli.ini : C:\PHP5\ext : bz2
Built-in    :             : calendar
Built-in    :             : com_dotnet
Built-in    :             : Core
Built-in    :             : ctype
php-cli.ini : C:\PHP5\ext : curl
Built-in    :             : date
Built-in    :             : dom

and something similar for phpinfo()

Also, once this data is available, maybe it could become available via 
get_loaded_extensions().

Maybe as a second optional parameter 

array get_loaded_extensions ([ bool $zend_extensions= false, [bool 
$include_load_reason= false] ] )



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-23 21:07 UTC] jani@php.net
-Package: Feature/Change Request +Package: PHP options/info functions -Operating System: Irrelevant +Operating System: * -PHP Version: 5.3CVS-2009-07-06 (snap) +PHP Version: *
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Jan 17 23:01:24 2019 UTC