mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
- Return real size allocated
This commit is contained in:
@@ -611,7 +611,7 @@ ZEND_API int _persist_alloc(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
|
||||
/* add the block to the persistent list */
|
||||
ADD_POINTER_TO_LIST(p);
|
||||
HANDLE_UNBLOCK_INTERRUPTIONS();
|
||||
return p->size;
|
||||
return p->size+sizeof(zend_mem_header)+PLATFORM_PADDING;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user