diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-05-13 13:18:00 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-05-13 13:18:00 +0400 |
commit | b8b8c497c4b9d6deceee0b287fd7630f79f7f4ea (patch) | |
tree | 84d30e04a53a93b967ae57e27e92be306fd9fc55 /ext/sysvshm | |
parent | f1720348ca7cfea9e88a294faf0ec077c66786f1 (diff) | |
download | php-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/sysvshm')
-rw-r--r-- | ext/sysvshm/sysvshm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sysvshm/sysvshm.c b/ext/sysvshm/sysvshm.c index b6e27ffbb1..bb908a4113 100644 --- a/ext/sysvshm/sysvshm.c +++ b/ext/sysvshm/sysvshm.c @@ -212,7 +212,7 @@ PHP_FUNCTION(shm_detach) return; } SHM_FETCH_RESOURCE(shm_list_ptr, shm_id); - RETURN_BOOL(SUCCESS == zend_list_delete(Z_RES_P(shm_id))); + RETURN_BOOL(SUCCESS == zend_list_close(Z_RES_P(shm_id))); } /* }}} */ |