Home  >  Article  >  Backend Development  >  PHP cli模式下提醒 Module 'xxx' already loaded

PHP cli模式下提醒 Module 'xxx' already loaded

WBOY
WBOYOriginal
2016-06-13 11:54:46825browse

PHP cli模式下提示 Module 'xxx' already loaded

今天在终端下执行PHP脚本爆出 Module 'sqlite3' already loaded ,仔细检查没有找到问题,在网上搜索大致给出

?

出现上面错误的原因是,外部动态库加载有两种方式,一种是通过编译指定 -ldl 将外部extension目录直接编译进php,另一种是通过php的ini文件指定,这里的错误指示出外部动态链接库已经被编译进php了,还在 php.ini指定,因而出错。打开php.ini文件,注释.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn