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.