[php-src] PR #25523: ext/openssl: Reset the error queue at the end of a request
| From: | ArtUkrainskiy | Date: | Tue, 17 Nov 2026 16:01:01 +0000 |
| Subject: | [php-src] PR #25523: ext/openssl: Reset the error queue at the end of a request | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40728@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25523
Author: ArtUkrainskiy
Fixes GH-25521
OPENSSL_G(errors) is only freed in GSHUTDOWN, so openssl_error_string() in
one request returns errors another request left behind. This empties the queue and the saved mark in
RSHUTDOWN.
The test sends two requests to the CLI server, so both run in one process. It fails without the fix.
I also checked php-fpm with one worker. The ext/openssl tests pass on 8.4 and 8.5. On 8.4 they also
pass with ASan. The commit applies cleanly to 8.5, 8.6 and master.