Rumah >pembangunan bahagian belakang >tutorial php >think请问这个是什么原因导致的?php是编译安装的。
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>