Home  >  Article  >  Backend Development  >  think请问这个是什么原因导致的?php是编译安装的。

think请问这个是什么原因导致的?php是编译安装的。

WBOY
WBOYOriginal
2016-06-06 20:41:561302browse

invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0
invalid library (maybe not a PHP library) 'curl.so' in Unknown on line 0

回复内容:

invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0
invalid library (maybe not a PHP library) 'curl.so' in Unknown on line 0

<code>PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0
</code>

这个消息表示这里没有 "get_module"这个函数在 "zip.so"或"curl.so"动态链接库里.通常是你编译暗黑族昂的时候没配置好的问题.
确保你的php扩展库的文件夹里有这样的定义

<code>#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
</code>

还有这个

<code>#ifdef COMPILE_DL_MYLIB
ZEND_GET_MODULE(mylib)
#endif
</code>
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