# php -m输出与phpinfo 不一致

**URL:** <https://www.shiqidu.com/t/topic/370>\
**Category:** 开发调优\
**Tags:** PHP\
**Created:** [2018 年2 月 5 日 08:18 UTC](https://www.shiqidu.com/t/topic/370 "2018-02-05T08:18:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![dajiang](https://www.shiqidu.com/user_avatar/www.shiqidu.com/dajiang/32/468_2.png) [@dajiang](https://www.shiqidu.com/u/dajiang)\
发布日期： [2018 年2 月 5 日 08:18 UTC](https://www.shiqidu.com/t/topic/370/1 "2018-02-05T08:18:34Z")

</div>

根据搜索结果，是多个php.ini中加载的配置项不一样导致，在windows下，在程序安装目录下搜索.ini找到关于php的，查找对应的扩展模块是否有加载上相互一致，如果不一致，则把对应的扩展模块加上，遇到背景是composer加载时提示缺少xxx扩展但在phpinfo中确实有的情况
