From ad7a78b253be970db70c2251e66f9297d8e7f829 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 17 Oct 2018 11:46:30 +0300 Subject: [PATCH] Added comment --- Zend/zend_object_handlers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 0cdd3242d70..48549dfb999 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -1139,6 +1139,9 @@ ZEND_API zend_function *zend_get_call_trampoline_func(zend_class_entry *ce, zend size_t mname_len; zend_op_array *func; zend_function *fbc = is_static ? ce->__callstatic : ce->__call; + /* We use non-NULL value to avoid useless run_time_cache allocation. + * The low bit must be zero, to not be interpreted as a MAP_PTR offset. + */ static const void *dummy = (void*)(intptr_t)2; ZEND_ASSERT(fbc);