summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-11-06 07:22:13 +0000
committerDmitry Stogov <dmitry@php.net>2007-11-06 07:22:13 +0000
commit609aa052b330bb03072bef6282d68071994fff94 (patch)
treec2a7bf878c19b9d551fff30f1b18b11a9ef16109 /Zend/zend_alloc.h
parent35ab31e7ad7f95144e7f336678ee4355c148b72a (diff)
downloadphp-git-609aa052b330bb03072bef6282d68071994fff94.tar.gz
Allow user defined malloc/realloc/free
Diffstat (limited to 'Zend/zend_alloc.h')
-rw-r--r--Zend/zend_alloc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h
index 8df7e95f48..bdc051887c 100644
--- a/Zend/zend_alloc.h
+++ b/Zend/zend_alloc.h
@@ -233,6 +233,11 @@ ZEND_API zend_mm_heap *zend_mm_startup_ex(const zend_mm_mem_handlers *handlers,
ZEND_API zend_mm_heap *zend_mm_set_heap(zend_mm_heap *new_heap TSRMLS_DC);
ZEND_API zend_mm_storage *zend_mm_get_storage(zend_mm_heap *heap);
+ZEND_API void zend_mm_set_custom_handlers(zend_mm_heap *heap,
+ void* (*malloc)(size_t),
+ void (*free)(void*),
+ void* (realloc)(void*, size_t));
+
#endif
/*