diff options
author | Xinchen Hui <laruence@gmail.com> | 2018-06-11 21:00:09 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2018-06-11 21:00:38 +0800 |
commit | ffaee27478a9cb338e40edeb5acf233f9cb67111 (patch) | |
tree | f779b5782ffb696c7472588b6afbfa7e22579f81 /Zend/zend_objects_API.h | |
parent | eebad01672b4201afa1049eb2f99508ac75fe2f6 (diff) | |
download | php-git-ffaee27478a9cb338e40edeb5acf233f9cb67111.tar.gz |
Fixed bug #76427 (Segfault in zend_objects_store_put)
Diffstat (limited to 'Zend/zend_objects_API.h')
-rw-r--r-- | Zend/zend_objects_API.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_objects_API.h b/Zend/zend_objects_API.h index 6fac2b535e..08cefb8ba6 100644 --- a/Zend/zend_objects_API.h +++ b/Zend/zend_objects_API.h @@ -37,6 +37,10 @@ (o) = (zend_object*)((((zend_uintptr_t)(n)) << 1) | OBJ_BUCKET_INVALID); \ } while (0) +#define ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(h) do { \ + SET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[(h)], EG(objects_store).free_list_head); \ + EG(objects_store).free_list_head = (h); \ + } while (0) #define OBJ_RELEASE(obj) zend_object_release(obj) |