1
0
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:
Andi Gutmans
2000-05-08 16:18:20 +00:00
parent 19de3be052
commit a9ec11476c

View File

@@ -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;
}