summaryrefslogtreecommitdiff
path: root/ext/sysvshm
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sysvshm')
-rw-r--r--ext/sysvshm/sysvshm.c2
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)));
}
/* }}} */