From 1c5e9146169cea55796749ff223e5670f2d509bd Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 15 Jan 2015 21:43:17 +0300 Subject: [PATCH] Fixed build without alloca() --- Zend/zend_object_handlers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 796dd50396..251ac310d5 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -1035,7 +1035,9 @@ static union _zend_function *zend_std_get_method(zend_object **obj_ptr, zend_str if (EXPECTED(key != NULL)) { lc_method_name = Z_STR_P(key); +#ifdef ZEND_ALLOCA_MAX_SIZE use_heap = 0; +#endif } else { STR_ALLOCA_ALLOC(lc_method_name, method_name->len, use_heap); zend_str_tolower_copy(lc_method_name->val, method_name->val, method_name->len); -- 2.40.0