|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #70950 Make SQLite3 Online Backup API available
Submitted: 2015-11-20 13:11 UTC Modified: 2019-06-17 21:43 UTC
Avg. Score:4.4 ± 0.7
Reproduced:8 of 8 (100.0%)
Same Version:2 (25.0%)
Same OS:2 (25.0%)
From: dexen dot devries at gmail dot com Assigned: cmb (profile)
Status: Closed Package: SQLite related
PHP Version: 5.6.15 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dexen dot devries at gmail dot com
New email:
PHP Version: OS:


 [2015-11-20 13:11 UTC] dexen dot devries at gmail dot com
SQLite3 provides Online Backup API ( for copying databases in safe way. Please expose the API through the SQLite3 extension.

Test script:
$source = SQLite3('original.sqlite');
$dest = SQLite3('backup.sqlite');

  # equivalent of C sqlite3_backup_init()
$backup = new SQLite3Backup($dest, $source);

  # equivalent of C sqlite3_backup_step()
$backup->step($npages = -1);

  # equivalent of C sqlite3_backup_finish

echo 'backup complete.';

Expected result:
backup complete.

Actual result:
class SQLite3Backup does not exist


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-02 19:47 UTC]
I'm on the fence whether it would be better to expose the full API
or just a single method (say, SQLite3::backupFrom(SQLite3
$source)). The former would have obvious advantages for large
databases, but the latter would be sufficient for small databases
(in particular loading and saving in-memory databases), and would
be much more easier to implement and use, and therefore less

 [2019-06-17 21:43 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-06-17 21:43 UTC]
PR #3617 has been merged, so I consider this feature request

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 02 23:01:32 2024 UTC