php-src/ext/pgsql
Niels Dossche 77ac1e8592 Fix GH-12974: Apache crashes on shutdown when using pg_pconnect()
On ZTS, the global variables are stored in dynamically allocated memory.
When the module gets shut down this memory is released. After the module
is shut down, only then are the persistent resources cleared. Normally
this isn't an issue, but pgsql and odbc refer to the globals to modify
some counters, after the globals have been freed.
Fix this by guarding the modification.

Closes GH-13032.
2023-12-27 20:14:23 +01:00
..
tests Merge branch 'PHP-8.1' into PHP-8.2 2023-11-27 18:19:02 +00:00
config.m4 PGSQL and POD_SQL: don't include pg_config.h 2020-05-25 10:48:35 +02:00
config.w32 PGSQL and POD_SQL: don't include pg_config.h 2020-05-25 10:48:35 +02:00
CREDITS
pgsql.c Fix GH-12974: Apache crashes on shutdown when using pg_pconnect() 2023-12-27 20:14:23 +01:00
pgsql.stub.php Add support for generating namespaced constant 2023-02-23 10:05:30 +01:00
pgsql_arginfo.h Add support for generating namespaced constant 2023-02-23 10:05:30 +01:00
php_pgsql.h ext/pgsql: pgsql.allow_persistent, no need to use such large type for boolean state. 2023-12-23 17:14:48 +00:00