[php-src] PR #24991: Fix GH-24990: pdo_sqlite statement unusable after a failed execute()

From: Date: Wed, 28 Oct 2026 03:48:00 +0000
Subject: [php-src] PR #24991: Fix GH-24990: pdo_sqlite statement unusable after a failed execute()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40006@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24991 Author: lazerg pdo_sqlite only reset the statement after a failed step when it returned SQLITE_ERROR. Other errors, like SQLITE_CONSTRAINT, left it un-reset, so the next execute() failed to bind with "21 bad parameter or other API misuse". This now resets on every failed step. The 8.4.27 regression in the report is already gone on PHP-8.4 since d5696b8cd10 (GH-24372), because the statement gets reset again on re-execute. A statement whose first execute() fails is still broken there, and this fixes that case. Fixes #24990

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