|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
11 + 42 = ?
Subscribe to this entry?

 [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: Wed Jun 29 06:05:44 2022 UTC