[php-src] PR #13032: Fix GH-12974: Apache crashes on shutdown when using pg_pconnect()

From: Date: Tue, 26 Dec 2023 23:03:35 +0000
Subject: [php-src] PR #13032: Fix GH-12974: Apache crashes on shutdown when using pg_pconnect()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-24606@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/13032 Author: nielsdos 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. We don't have Apache tests unfortunately, but I tested this manually with Valgrind (instructions in the linked issue).

« previous php.git-pulls (#24606) next »