最新消息:

zend optimizer扩展与PHP扩展之间的冲突

未分类 admin 3285浏览 0评论

自从很早之前装了zend optimizer一直没有发现有问题,今天在命令行下调用php.exe,出现了一大堆的warning:

PHP Warning: PHP Startup: soap: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: sockets: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mysql: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match

google了一下,问题是dll的版本跟php版本间的冲突,可是在php.ini中的扩展目录就是PHP目录下的ext,按理说是不应该有问题的。再多看了几个google的结果,也有人说可能是由于存在多个php.ini而造成的。用everything搜索了一下本机的php.ini发现还真是不只一个,其中一个就在zend/core/etc下,打开一看,有如下内容:

[Zend]
extension=php_soap.dll
extension=php_sockets.dll
extension=php_mysql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_pgsql.dll

正好是之前warning相关的几个dll,注释掉重启了一下apache,一切正常了

转载请注明:爱开源 » zend optimizer扩展与PHP扩展之间的冲突

您必须 登录 才能发表评论!