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: 2021-08-01 04:22 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: cmb (profile)
Status: No Feedback 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: *
 [2021-07-22 09:36 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-22 09:36 UTC] cmb@php.net
Why would this be relevant?  What's the uase case?
 [2021-08-01 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 03:01:28 2024 UTC