2017-10-11 90 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