Skip to content

Commit 1cd566e

Browse files
committed
Workaround for GCC-4.9.2 bug
1 parent c8778eb commit 1cd566e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend_object_handlers.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,10 @@ ZEND_API zend_function *zend_std_get_static_method(zend_class_entry *ce, const c
11841184
ALLOCA_FLAG(use_heap)
11851185

11861186
if (EXPECTED(key != NULL)) {
1187+
#if (ZEND_GCC_VERSION == 4009) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
1188+
/* This is a workaround for bug in GCC 4.9.2 */
1189+
use_heap = 0;
1190+
#endif
11871191
lc_function_name = Z_STRVAL(key->constant);
11881192
hash_value = key->hash_value;
11891193
} else {

0 commit comments

Comments
 (0)