diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-04-02 14:34:44 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-04-02 14:34:44 +0400 |
commit | d8099d0468426dbee59f540048376653535270ce (patch) | |
tree | 133021a1fda6a2453efcd9a279e9b0a55c006396 /Zend/zend_list.c | |
parent | 3b25faa4aa844bce12b1cbb3a3938573965df485 (diff) | |
download | php-git-d8099d0468426dbee59f540048376653535270ce.tar.gz |
Changed data layout to allow more efficient operations
Diffstat (limited to 'Zend/zend_list.c')
-rw-r--r-- | Zend/zend_list.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_list.c b/Zend/zend_list.c index 42450695d1..2566eb6d2e 100644 --- a/Zend/zend_list.c +++ b/Zend/zend_list.c @@ -43,7 +43,7 @@ ZEND_API zval *zend_list_insert(void *ptr, int type TSRMLS_DC) ZEND_API int _zend_list_delete(zend_resource *res TSRMLS_DC) { - if (res->gc.refcount <= 0) { + if (GC_REFCOUNT(res) <= 0) { return zend_hash_index_del(&EG(regular_list), res->handle); } else { return SUCCESS; @@ -52,7 +52,7 @@ ZEND_API int _zend_list_delete(zend_resource *res TSRMLS_DC) ZEND_API int _zend_list_close(zend_resource *res TSRMLS_DC) { - if (res->gc.refcount <= 0) { + if (GC_REFCOUNT(res) <= 0) { return zend_list_delete(res); } else if (res->type >= 0) { zend_rsrc_list_dtors_entry *ld; |