在cli模式运行php,给出警告:
php warning: php startup: pdo_pgsql: unable to initialize module
module compiled with module api=20100525
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=20100525
php compiled with module api=20121212
these options need to match
in unknown on line 0
看提示应该是说pgsql和php用的api版本不一致,可是google了好半天,没有好到办法如何重新编译pgsql。谁帮忙看看哈。
回复内容: 在cli模式运行php,给出警告:
php warning: php startup: pdo_pgsql: unable to initialize module
module compiled with module api=20100525
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=20100525
php compiled with module api=20121212
these options need to match
in unknown on line 0
看提示应该是说pgsql和php用的api版本不一致,可是google了好半天,没有好到办法如何重新编译pgsql。谁帮忙看看哈。
你首先搞清楚,出问题的是 php-pgsql 模块,不是 pgsql 这个数据库。
你的模块使用的是旧版本的 php api,而 php 已经是新版本的 api 了。也就是说,你的 php 版本和 php-pgsql 模块的版本差异过大。
你是从哪里安装的 php 又是从哪里安装的 php-pgsql 啊?如果是 linux 的话,推荐从软件源里安装相关包,这样版本一定是兼容的。
