]> granicus.if.org Git - php/commitdiff
Reenable alloca support on ZTS
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 30 Aug 2019 15:24:06 +0000 (17:24 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 30 Aug 2019 15:24:06 +0000 (17:24 +0200)
This got disabled due to an incorrect change in a preprocessor condition
in 2104bea5d756dfa40b605a4a2765a3bc4637a76c. It was not supposed to
be disabled.

Zend/zend_portability.h

index 89173642d2250f997c56732164abc426576c3ff5..978f25bbfb8701f8cf21232d9437488a9fc0ab7a 100644 (file)
@@ -355,7 +355,7 @@ char *alloca();
 
 #endif
 
-#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
+#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
 # define ZEND_ALLOCA_MAX_SIZE (32 * 1024)
 # define ALLOCA_FLAG(name) \
        zend_bool name;