summaryrefslogtreecommitdiff
path: root/ext/wddx
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-05-13 13:18:00 +0400
committerDmitry Stogov <dmitry@zend.com>2014-05-13 13:18:00 +0400
commitb8b8c497c4b9d6deceee0b287fd7630f79f7f4ea (patch)
tree84d30e04a53a93b967ae57e27e92be306fd9fc55 /ext/wddx
parentf1720348ca7cfea9e88a294faf0ec077c66786f1 (diff)
downloadphp-git-b8b8c497c4b9d6deceee0b287fd7630f79f7f4ea.tar.gz
In most user extensions functions like mysql_close() should use zend_list_close() instead of zend_list_delete(). This closes the actual connection and frees extension specific data structures, but doesn't free zend_reference structure that might be referenced from zval(s). This also doesn't decrement the resource reference counter.
Diffstat (limited to 'ext/wddx')
-rw-r--r--ext/wddx/wddx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index f383603803..699bad054c 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -1187,7 +1187,7 @@ PHP_FUNCTION(wddx_packet_end)
RETVAL_STR(STR_COPY(packet->s));
- zend_list_delete(Z_RES_P(packet_id));
+ zend_list_close(Z_RES_P(packet_id));
}
/* }}} */