This was very, very obvious when using a debug build of PHP to build the
manual!
Fixes bug #70571 (Memory leak in sqlite3_do_callback).
. Fixed bug #70529 (Session read causes "String is not zero-terminated" error).
(Yasuo)
+- SQLite3:
+ . Fixed bug #70571 (Memory leak in sqlite3_do_callback). (Adam)
+
- XMLRPC
. Fixed bug #70526 (xmlrpc_set_type returns false on success). (Laruence)
if (Z_ISUNDEF(agg_context->zval_context)) {
ZVAL_NULL(&agg_context->zval_context);
}
- ZVAL_COPY_VALUE(&zargs[0], &agg_context->zval_context);
+ ZVAL_DUP(&zargs[0], &agg_context->zval_context);
ZVAL_LONG(&zargs[1], agg_context->row_count);
}
php_error_docref(NULL, E_WARNING, "An error occurred while invoking the callback");
}
+ if (is_agg) {
+ zval_ptr_dtor(&zargs[0]);
+ }
+
/* clean up the params */
if (fake_argc) {
for (i = is_agg; i < argc + is_agg; i++) {