From: Dmitry Stogov Date: Thu, 1 Dec 2016 12:46:52 +0000 (+0300) Subject: Workaround for GCC-4.9.2 bug X-Git-Tag: php-5.6.30RC1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cd566e13f915ccd06a1140d04d4d946748ad021;p=php Workaround for GCC-4.9.2 bug --- diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 5107300d5a..043944a0c8 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -1184,6 +1184,10 @@ ZEND_API zend_function *zend_std_get_static_method(zend_class_entry *ce, const c ALLOCA_FLAG(use_heap) if (EXPECTED(key != NULL)) { +#if (ZEND_GCC_VERSION == 4009) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN) + /* This is a workaround for bug in GCC 4.9.2 */ + use_heap = 0; +#endif lc_function_name = Z_STRVAL(key->constant); hash_value = key->hash_value; } else {