From fa6ab159a6b03cf36f48b955c8992c38a48abb5d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 1 Dec 2006 15:33:20 +0000 Subject: [PATCH] Fixed bug #39702 (php crashes in the allocator on linux-m68k) --- Zend/zend_alloc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 460ce62ffe..7905ad4b82 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -373,6 +373,11 @@ struct _zend_mm_heap { #ifndef ZEND_MM_ALIGNMENT # define ZEND_MM_ALIGNMENT 8 # define ZEND_MM_ALIGNMENT_LOG2 3 +#elif ZEND_MM_ALIGNMENT < 4 +# undef ZEND_MM_ALIGNMENT +# undef ZEND_MM_ALIGNMENT +# define ZEND_MM_ALIGNMENT 4 +# define ZEND_MM_ALIGNMENT_LOG2 2 #endif #define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_ALIGNMENT-1) -- 2.50.1