2017-10-11 89 views
0

在终端我键入:PHP do_pgsql无法初始化模块

php -v 

,我得到这个:

PHP Warning: PHP Startup: pdo_pgsql: Unable to initialize module 
Module compiled with module API=20131226 
PHP compiled with module API=20121212 
These options need to match 
in Unknown on line 0 
PHP Warning: PHP Startup: pgsql: Unable to initialize module 
Module compiled with module API=20131226 
PHP compiled with module API=20121212 
These options need to match 
in Unknown on line 0 
PHP 5.5.38 (cli) (built: Aug 21 2016 21:48:49) 
Copyright (c) 1997-2015 The PHP Group 
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies 

我的问题是: 是这些警告很重要的,如果是,我该怎么办?

回答

1

这些警告表明pdo_pgsql扩展是针对与当前正在运行的PHP API版本不同的(本例中为新版本)PHP版本编译的。如果您不使用此扩展程序,则可以安全地忽略这些错误并禁用扩展程序,但是,如果您需要资金并安装兼容版本。

+0

谢谢!你让我开心。我根本不使用postgresql ......所以,现状 – Gerry