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

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

WBOY
Release: 2016-06-06 20:41:56
Original
1340 people have browsed it

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>
Copy after login

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

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

还有这个

<code>#ifdef COMPILE_DL_MYLIB
ZEND_GET_MODULE(mylib)
#endif
</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template