Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

unable to connect laravel app with postgres

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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."

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading