|  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
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
6 - 2 = ?
Subscribe to this entry?

 [2009-07-06 12:39 UTC] RQuadling at GMail dot com
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]

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 

Maybe as a second optional parameter 

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-23 21:07 UTC]
-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]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-07-22 09:36 UTC]
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-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 00:01:27 2023 UTC