summaryrefslogtreecommitdiff
path: root/Zend/zend_list.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-09-16 09:13:19 +0000
committerPierre Joye <pajoye@php.net>2010-09-16 09:13:19 +0000
commitaa0ed267a29b83099715c48f25bcbf9642bf7bb2 (patch)
treed834f5f091ed0a5681caa816a41c5de8f2eb1cb3 /Zend/zend_list.c
parent14e77486e06e21bfc29d80327bdb85ff7e1f0bfa (diff)
downloadphp-git-aa0ed267a29b83099715c48f25bcbf9642bf7bb2.tar.gz
- use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert
Diffstat (limited to 'Zend/zend_list.c')
-rw-r--r--Zend/zend_list.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Zend/zend_list.c b/Zend/zend_list.c
index 83377e401b..b9d20dcc8b 100644
--- a/Zend/zend_list.c
+++ b/Zend/zend_list.c
@@ -32,11 +32,10 @@ ZEND_API int le_index_ptr;
static HashTable list_destructors;
-ZEND_API int zend_list_insert(void *ptr, int type)
+ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC)
{
int index;
zend_rsrc_list_entry le;
- TSRMLS_FETCH();
le.ptr=ptr;
le.type=type;
@@ -92,11 +91,11 @@ ZEND_API int _zend_list_addref(int id TSRMLS_DC)
}
-ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type)
+ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC)
{
int rsrc_id;
- rsrc_id = zend_list_insert(rsrc_pointer, rsrc_type);
+ rsrc_id = zend_list_insert(rsrc_pointer, rsrc_type TSRMLS_CC);
if (rsrc_result) {
rsrc_result->value.lval = rsrc_id;