Home >Backend Development >PHP Tutorial >pdo - php版本问题

pdo - php版本问题

WBOY
WBOYOriginal
2016-06-06 20:34:261302browse

同一台服务器在网页调用PHPINFO()的时候看到的是5.6线程安全版本,但是在CLI看到的是5.4非线程安全.cli下执行PHP文件提示 Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' undefined symbol: executor_globals_id, Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' undefined symbol: core_globals_id

这个怎么处理?如何把CLI也升级到5.6或弄成线程安全

回复内容:

同一台服务器在网页调用PHPINFO()的时候看到的是5.6线程安全版本,但是在CLI看到的是5.4非线程安全.cli下执行PHP文件提示 Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' undefined symbol: executor_globals_id, Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' undefined symbol: core_globals_id

这个怎么处理?如何把CLI也升级到5.6或弄成线程安全

你安装了两个版本吧,找一下5.6的路径,在cli下执行5.6的php就可以了

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