Check dynamically loaded PHP extensions from command line

rodrunner picture rodrunner · Jan 23, 2013 · Viewed 53.3k times · Source

I was checking the PHP manual to understand the different types of PHP extensions (PHP modules). There are Zend modules (mainly for PHP gurus), built-in modules and external modules.

Is there a way to tell from command line whether a PHP module has been loaded dynamically or whether it has built-in into the PHP binary?

I mean: with php -m I get all the loaded modules, but I would like to know which ones are built-in and which ones are external.

Answer

mineroot picture mineroot · Apr 2, 2015

Just run this command on the command line:

php -m

or this for more information:

php -i

Hope this helps.