-
HI, I'm getting Call to undefined function pg_connect() on aws lambda. I'm using "bref/bref": "0.5.x" Does this version support php/conf.d/php.ini ? Does it support pdo_pgsql |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi there! Welcome to Bref! There are a couple of things to unpack from your issue. 1st, version 0.5 is a bit outdated and updating to version pg_connect() is undefined because it is only available as an additional extension. You can check the extensions here: https://bref.sh/docs/environment/php.html#extensions |
Beta Was this translation helpful? Give feedback.
Hi there! Welcome to Bref!
There are a couple of things to unpack from your issue. 1st, version 0.5 is a bit outdated and updating to version
^1.5
could help a bit (I don't remember if PHP 8 is compatible with bref 0.5 to be honest).pg_connect() is undefined because it is only available as an additional extension. You can check the extensions here: https://bref.sh/docs/environment/php.html#extensions
If you pull in the pdo_pgsql extension into your Lambda, it should solve the issue. You will not need to modify
php.ini
as the extension layer will be doing that on your behalf.