diff options
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r-- | Zend/zend_alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 6831ae31af..92c939cd3f 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -494,6 +494,8 @@ ZEND_API void _persist_alloc(void *ptr) _mem_block_check(ptr, 1, filename, lineno); #endif + HANDLE_BLOCK_INTERRUPTIONS(); + /* remove the block from the non persistent list */ REMOVE_POINTER_FROM_LIST(p); @@ -501,6 +503,7 @@ ZEND_API void _persist_alloc(void *ptr) /* add the block to the persistent list */ ADD_POINTER_TO_LIST(p); + HANDLE_UNBLOCK_INTERRUPTIONS(); } |