php do_pgsql 无法初始化模块

php do_pgsql unable initialize module

我在终端输入:

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

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

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