[php-src] PR #25597: ext/pdo_sqlite: Fix use-after-free of bound string and LOB parameters

From: Date: Thu, 19 Nov 2026 16:11:42 +0000
Subject: [php-src] PR #25597: ext/pdo_sqlite: Fix use-after-free of bound string and LOB parameters
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40818@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25597 Author: iliaal If a PDO SQLite statement is executed again with an array that omits a parameter, or a bound value is replaced or its bindParam() variable reassigned while rows are still being fetched, SQLite reads the old string after PHP has freed it, because strings and LOBs were bound with SQLITE_STATIC and SQLite keeps a binding across sqlite3_reset(). Bind with SQLITE_TRANSIENT, as ext/sqlite3 does, and report a failed blob bind like a failed text bind. An omitted parameter keeps its previous value, as integer parameters already do. Fixes GH-25588

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