How can I fix the inconsistency between the pgsql compiling versions of cli-php?

Source: Internet
Author: User
Run PHP In CLI mode and give a warning: PHPWarning: PHPStartup: pdo_pgsql: running... run PHP In CLI mode and give a warning:

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

The prompt indicates that the api versions used by pgsql and php are inconsistent, but google has not been able to re-compile pgsql for a long time. Who can help me.

Reply content:

Run PHP In CLI mode and give a warning:

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

The prompt indicates that the api versions used by pgsql and php are inconsistent, but google has not been able to re-compile pgsql for a long time. Who can help me.

First, you should understand that the cause is the php-pgsql module, not the PostgreSQL database.

Your module uses the old version of php api, and PHP is already a new version of API. That is to say, the version of your PHP version is too different from that of the php-pgsql module.

Where did you install PHP and where did you install php-pgsql? If it is Linux, it is recommended to install related packages from the software source, so that the version must be compatible.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.