think请问这个是什么原因导致的?php是编译安装的。
程序员文章站
2022-05-31 08:49:26
...
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) '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
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0
这个消息表示这里没有 "get_module"这个函数在 "zip.so"或"curl.so"动态链接库里.通常是你编译暗黑族昂的时候没配置好的问题.
确保你的php扩展库的文件夹里有这样的定义
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
还有这个
#ifdef COMPILE_DL_MYLIB
ZEND_GET_MODULE(mylib)
#endif
上一篇: php 三维饼图的实现代码_PHP教程
下一篇: 小谈php正则提取图片地址_PHP教程