|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70571 Memory leak in sqlite3_do_callback
Submitted: 2015-09-24 10:38 UTC Modified: 2015-09-24 12:24 UTC
From: Assigned: aharvey (profile)
Status: Closed Package: SQLite related
PHP Version: 7.0Git-2015-09-24 (Git) OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2015-09-24 10:38 UTC]
sqlite3_do_callback() leaks the zval context when used with a custom aggregate function in PHP 7.0 due to the use of ZVAL_COPY_VALUE(). Replacing it with ZVAL_DUP() and a paired zval_ptr_dtor() removes the leak.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-24 10:38 UTC]
-Assigned To: +Assigned To: aharvey
 [2015-09-24 12:24 UTC]
-Status: Assigned +Status: Closed
 [2015-09-24 12:24 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jul 01 05:05:44 2022 UTC