com php-src: Fix conditional compilation: Zend/zend_alloc.c

From: Date: Wed, 29 May 2019 00:40:09 +0000
Subject: com php-src: Fix conditional compilation: Zend/zend_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-106410@lists.php.net to get a copy of this message
Commit: 08a0030b33a46849ddda8bd962a6b05db0750c4a Author: Anatol Belski <ab@php.net> Wed, 29 May 2019 02:40:09 +0200 Parents: 1a4ace05aedf5e9413eb089f5415dfabfe638196 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=08a0030b33a46849ddda8bd962a6b05db0750c4a Log: Fix conditional compilation The new symbols are shared and don't need to depend on the availability of __builtin_constant_p. Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 79b6640..9c08147 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -2373,9 +2373,6 @@ ZEND_API int is_zend_ptr(const void *ptr) return 0; } -#if !ZEND_DEBUG && defined(HAVE_BUILTIN_CONSTANT_P) -#undef _emalloc - #if ZEND_MM_CUSTOM static ZEND_COLD void* ZEND_FASTCALL _malloc_custom(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) @@ -2404,7 +2401,12 @@ static ZEND_COLD void* ZEND_FASTCALL _realloc_custom(void *ptr, size_t size ZEND return AG(mm_heap)->custom_heap.std._realloc(ptr, size); } } +#endif +#if !ZEND_DEBUG && defined(HAVE_BUILTIN_CONSTANT_P) +#undef _emalloc + +#if ZEND_MM_CUSTOM # define ZEND_MM_CUSTOM_ALLOCATOR(size) do { \ if (UNEXPECTED(AG(mm_heap)->use_custom_heap)) { \ return _malloc_custom(size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); \

« previous php.cvs (#106410) next »