Extension pgsql Does not load in PHP7.x

-1

I'm changing from PHP5 to PHP7 on windows 10 (machine development), all my settings went up fine, MySQL, Firebird, PDO MySQL, PDO PGSQL, but the blessed native PGSL does not go up, I've already enabled the line "extension = pgsql "and checked the dlls, everything in place, so much so that php5 works.

I have already changed DLLs, I have tested several things and nothing.

I started apache from the command line to see if it gave any error, then it showed me a bug in the php_pgsql.dll dll, I went there and changed the dll for a newer version, it stops giving the error, it starts apache, but the native pgsql module does not load, just the PDOs of life.

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

I'm not sure what I'm doing here, but I'm not sure how to do it.     

asked by anonymous 04.12.2018 / 14:03

1 answer

1

The solution I found

Add this line in httpd.conf

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

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

    
04.12.2018 / 14:25