i am trying to connect laravel app to azure postgres database the connection was working good but after the last update i get unknow error for me
Code
$connection = pg_connect("host=$host dbname=$dbname user=$username password=$password")
or die("Failed to create connection to database: MM<br/>");
print "Successfully created connection to database.<br/>";
result when connected to azure postgres database
php(16056,0x1e14b5300) malloc: double free for ptr 0x132862a00
php(16056,0x1e14b5300) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort php test.php
however with local connection the app working good
i try change php version
>Solution :
it appears there’s a compatibility issue with the M2 Chip and PostgreSQL. This seems to be connected to OpenSSL, as a similar problem occurred today with another user, but in their case, it involved Python
Malloc: double free error on M3 Macbook pro
"For the time being, consider setting ‘sslmode’ to ‘disabled’, at least until a fix is available. You can find more details about this setting in the PostgreSQL documentation here: PostgreSQL – libpq – SSL Support."