summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-03-25 19:23:16 +0000
committerAndi Gutmans <andi@php.net>2000-03-25 19:23:16 +0000
commit2572b088d0828fa20309dd5b604ff7eb96d40415 (patch)
tree12071f3ac9f317c5e73c16d8cc056acc7fa6ceba /Zend/zend_alloc.c
parent863e6fd2421479e57abf2b03dda30197d5c1e99c (diff)
downloadphp-git-2572b088d0828fa20309dd5b604ff7eb96d40415.tar.gz
*** empty log message ***
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index 000fd646d4..8164c3ec9a 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -592,7 +592,7 @@ ZEND_API void _full_mem_check(int silent ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_D
#endif
-ZEND_API void _persist_alloc(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
+ZEND_API int _persist_alloc(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
{
zend_mem_header *p = (zend_mem_header *) ((char *)ptr-sizeof(zend_mem_header)-PLATFORM_PADDING);
ALS_FETCH();
@@ -611,6 +611,7 @@ ZEND_API void _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;
}