简体   繁体   中英

PHP Warning: Module 'modulename' already loaded in Unknown on line 0

Running Mac OS X Yosemite with OS X Server, every time I run PHP commands in Terminal I get these 2 lines...

PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0
PHP Warning:  Module 'pgsql' already loaded in Unknown on line 0

Solutions I've seen (including on StackOverflow) suggest looking for duplicates of the lines loading those extensions in php.ini which I've checked & ruled out.

Solved. Running php -m reveals that, unlike in previous versions of OS X, the PHP in Yosemite has mcrypt & pgsql compiled in. Removing the directives loading those as extensions eliminated the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM