[php-src] PR #23188: Make PDOStatement::setFetchMode() updates atomic
| From: | iliaal | Date: | Sun, 09 Aug 2026 14:32:55 +0000 |
| Subject: | [php-src] PR #23188: Make PDOStatement::setFetchMode() updates atomic | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37707@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23188
Author: iliaal
PDOStatement::setFetchMode() discarded active FETCH_INTO or FETCH_CLASS state before validating its
replacement. Validate the candidate in local storage, then replace the tagged-union payload and
release the old state after a coherent commit. This preserves state on validation failure and makes
autoload or destructor re-entry safe.