Extension pgsql Does not load in PHP7.x

Asked

Viewed 134 times

-1

I am changing from PHP5 to PHP7 in windows 10 (development machine), all my settings have gone up good, Mysql, Firebird, PDO Mysql, PDO PGSQL, but the blessed Native PGSL does not go up, I have enabled the line "Extension=pgsql" and checked the dlls, everything in place, so much so that in php5 it works.

I’ve switched Dlls, I’ve tried a lot of things and nothing.

I started apache on the command line to see if there was an error, then it showed me an error in the dll php_pgsql.dll, went there and switched the dll for a newer version, it stops giving the error, starts apache, but the native pgsql module does not load, only the Pdos of life.

Is there any way to start PHP in debug mode to see where the error is?

A curiosity, I have an Ubuntu server with PHP7 running, looking in php.ini the lines of the above extensions are commented, but phpinfo shows everything active, has some configuration that frees everything?

1 answer

1


The Solution I Found

Add this line to httpd.conf

Loadfile "C:/Program Files (x86)/PHP/libpq.dll"

Forcing apache to use the dll in php to be compatible with php_pgsql.dll

Browser other questions tagged

You are not signed in. Login or sign up in order to post.