[php-src] PR #25810: Fix GH-25809: SQLite3::backup() returns true when the backup fails

From: Date: Thu, 26 Nov 2026 21:49:25 +0000
Subject: [php-src] PR #25810: Fix GH-25809: SQLite3::backup() returns true when the backup fails
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41083@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25810 Author: thunderer Fixes GH-25809. When sqlite3_backup_init() fails, SQLite stores the error in the destination connection, and after a failed sqlite3_backup_step() the message is also there. SQLite3::backup() read both from the source connection, so it returned true for a nonexistent database name and reported "not an error" for other failures. Read the error code and message from the destination connection instead. The open PR #21326 (Pdo\Sqlite::backup()) uses the same pattern.

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