Skip to content

Commit ead0565

Browse files
committed
Use ZEND_MM in debug mode instead of alloca
1 parent 88c668b commit ead0565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_portability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ char *alloca();
345345
# define XtOffsetOf(s_type, field) offsetof(s_type, field)
346346
#endif
347347

348-
#if (defined(HAVE_ALLOCA) || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
348+
#if !ZEND_DEBUG && (defined(HAVE_ALLOCA) || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
349349
# define ZEND_ALLOCA_MAX_SIZE (32 * 1024)
350350
# define ALLOCA_FLAG(name) \
351351
bool name;

0 commit comments

Comments
 (0)