[php-src] Issue #12811: PHP-FPM pg_connect crash when connecting to PostgreSQL with SSL

From: Date: Tue, 28 Nov 2023 13:00:07 +0000
Subject: [php-src] Issue #12811: PHP-FPM pg_connect crash when connecting to PostgreSQL with SSL
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245916@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12811 Author: ellmout ### Description The following code: ```php <?php $db = pg_connect("host=127.0.0.1 port=5432 dbname=db user=user password=password sslmode=require"); ``` Resulted in this output: ``` PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: connection to server at "127.0.0.1", port 5432 failed: FATAL: no PostgreSQL user name specified in startup packet in php shell code on line 1 Warning: pg_connect(): Unable to connect to PostgreSQL server: connection to server at "127.0.0.1", port 5432 failed: FATAL: no PostgreSQL user name specified in startup packet in php shell code on line 1 php(17152,0x1e5c7dec0) malloc: *** error for object 0xc5: pointer being freed was not allocated php(17152,0x1e5c7dec0) malloc: *** set a breakpoint in malloc_error_break to debug ``` macOS crash report : [php-2023-11-28-134018.json](https://github.com/php/php-src/files/13488112/php-2023-11-28-134018.json) Thx ! ### PHP Version PHP 8.3.0 ### Operating System macOS 14.1.1

« previous php.bugs (#245916) next »