I can't connect from my local PHP dev server to my PostgreSQL DB on Heroku. This is because Heroku requires me to make that connection using SSL. But the standard Windows PHP 5.5.12 PostgreSQL client library seems to not support SSL. I get the following error:
pg_pconnect(): Unable to connect to PostgreSQL server: sslmode value "require" invalid when SSL support is not compiled in
I tried copying over the libpg.dll from my Postgres installation, to no avail.
I ran phpinfo() and it said under pgsql: SSL disabled.
I installed BitNami's WAPP Stack. With it phpinfo() is listing under pgsql: SSL enabled. But I still get the same error.
Can anyone tell me how to get a PostgreSQL client library for PHP on Windows with SSL enabled?
Similar questions without satisfying answers:
Heroku Postgres Connection from localhost PHP application
Unable to connect to PostgreSQL server
Any help is very appreciated, Daniel