vercel-community / php

🐘 PHP Runtime for β–² Vercel Serverless Functions (support 7.4-8.3)

Home Page:https://php.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Postgres connection error - "SCRAM authentication requires libpq version 10 or above"

SchramlTim opened this issue Β· comments

Bug happend in

  • Version: 0.3.2 -> 0.5.2

Description

This error happend if i try to connect to my supabase postgres database: "SCRAM authentication requires libpq version 10 or above".
Is there an option to solve this error?

Same problem here, if you have any solution I'll take it !

Same problem here.

up, same problem

Hi folks! I am not sure if there is any way to upgrade libpq to newer version, because lambdas are using Amazon Linux 2 under the hood. But, I will try to take a look deeper.

Will this fix work? https://stackoverflow.com/a/72703748

I've been using Planetscale instead as my database temporarily and that works for now but would love to get Postgres working.

is there an update?

I have an update:
Found time to work my way into the platform and found a fix for it.
The problem needs to be fixed in libphp. I will put a PR there and hope that @f3l1x will release a new package version for everyone in time :)

@SchramlTim: Where is the PR?
Maybe good to specify ;)

And please reopen this ticket, currently it is not solved.

Same problem too @SchramlTim i tried to connect using PDO method with php-vercel function: https://github.com/vercel-community/php

how do i use libphp in my project ?

i need create this architecture in my project just ?

β”œβ”€β”€ dist
// β”‚ └── *.js
└── native
// β”œβ”€β”€ lib
// β”‚ └── * (shared libs)
// └── php
// β”œβ”€β”€ modules
// β”‚ └── *.so (php modules)
// β”œβ”€β”€ composer
// β”œβ”€β”€ php.ini
// β”œβ”€β”€ php
// β”œβ”€β”€ php-cgi
// β”œβ”€β”€ php-fpm
// └── php-fpm.ini

I am working on it. I need to release new version.

Hi, can you folks try new versions?

vercel-php@0.6.0 - PHP 8.2.x (https://example-php-8-2.vercel.app/)
vercel-php@0.5.3 - PHP 8.1.x (https://example-php-8-1.vercel.app/)
vercel-php@0.4.1 - PHP 8.0.x (https://example-php-8-0.vercel.app/)
vercel-php@0.3.3 - PHP 7.4.x (https://example-php-7-4.vercel.app/)

@SchramlTim, @MaksOuw, @snuggneighborhood, @irfanhkm, @tao, @HugoBarjot: Can you try the new versions specified by @f3l1x?

Connection work for me with this 0.6.0 version

Tested it too. PHP 8.2 works for me fine.

Awesome. Thank you guys for waiting and @SchramlTim for code updates.

Awesome. Thank you guys for waiting and @SchramlTim for code updates.