summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-12-12 13:02:28 +0300
committerDmitry Stogov <dmitry@zend.com>2018-12-12 13:02:28 +0300
commit4d0a2f68a9063cd6befe3ce459f91cdad755996f (patch)
tree7e53b005bd2822726e60d8651dcd78e992a8f7cd /Zend/zend_alloc.h
parent05f3706588c64789f0cb185690684f8745757c13 (diff)
downloadphp-git-4d0a2f68a9063cd6befe3ce459f91cdad755996f.tar.gz
Provide is_zend_ptr() function to check if a pointer lays in Zend MM heap.
Diffstat (limited to 'Zend/zend_alloc.h')
-rw-r--r--Zend/zend_alloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h
index b3986ab961..0fa20cad34 100644
--- a/Zend/zend_alloc.h
+++ b/Zend/zend_alloc.h
@@ -224,6 +224,7 @@ ZEND_API int zend_set_memory_limit(size_t memory_limit);
ZEND_API void start_memory_manager(void);
ZEND_API void shutdown_memory_manager(int silent, int full_shutdown);
ZEND_API int is_zend_mm(void);
+ZEND_API int is_zend_ptr(const void *ptr);
ZEND_API size_t zend_memory_usage(int real_usage);
ZEND_API size_t zend_memory_peak_usage(int real_usage);