mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Fix conditional compilation These macros should not expect any argument
This commit is contained in:
commit
37d01ff81a
2 changed files with 7 additions and 5 deletions
|
@ -610,7 +610,7 @@ END_EXTERN_C()
|
|||
#define RETVAL_EMPTY_STRING() ZVAL_EMPTY_STRING(return_value)
|
||||
#define RETVAL_RES(r) ZVAL_RES(return_value, r)
|
||||
#define RETVAL_ARR(r) ZVAL_ARR(return_value, r)
|
||||
#define RETVAL_EMPTY_ARRAY(r) ZVAL_EMPTY_ARRAY(return_value)
|
||||
#define RETVAL_EMPTY_ARRAY() ZVAL_EMPTY_ARRAY(return_value)
|
||||
#define RETVAL_OBJ(r) ZVAL_OBJ(return_value, r)
|
||||
#define RETVAL_ZVAL(zv, copy, dtor) ZVAL_ZVAL(return_value, zv, copy, dtor)
|
||||
#define RETVAL_FALSE ZVAL_FALSE(return_value)
|
||||
|
@ -629,7 +629,7 @@ END_EXTERN_C()
|
|||
#define RETURN_EMPTY_STRING() { RETVAL_EMPTY_STRING(); return; }
|
||||
#define RETURN_RES(r) { RETVAL_RES(r); return; }
|
||||
#define RETURN_ARR(r) { RETVAL_ARR(r); return; }
|
||||
#define RETURN_EMPTY_ARRAY(r) { RETVAL_EMPTY_ARRAY(r); return; }
|
||||
#define RETURN_EMPTY_ARRAY() { RETVAL_EMPTY_ARRAY(); return; }
|
||||
#define RETURN_OBJ(r) { RETVAL_OBJ(r); return; }
|
||||
#define RETURN_ZVAL(zv, copy, dtor) { RETVAL_ZVAL(zv, copy, dtor); return; }
|
||||
#define RETURN_FALSE { RETVAL_FALSE; return; }
|
||||
|
|
|
@ -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); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue