mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Use supported printf format on Win64
Commit aaa1f90[1] dropped support for the custom `I` specifier, so we must no longer use it for `ZEND_ADDR_FMT`; otherwise there are segfaults when printing memory leaks, and maybe elsewhere. [1] <http://git.php.net/?p=php-src.git;a=commit;h=aaa1f90e3f90c24098fa55a7b868fdca0b89ee25>
This commit is contained in:
parent
89b4a46d56
commit
74f3bfc6eb
@ -116,9 +116,7 @@ typedef int32_t zend_off_t;
|
||||
|
||||
static const char long_min_digits[] = LONG_MIN_DIGITS;
|
||||
|
||||
#ifdef _WIN64
|
||||
# define ZEND_ADDR_FMT "0x%016I64x"
|
||||
#elif SIZEOF_SIZE_T == 4
|
||||
#if SIZEOF_SIZE_T == 4
|
||||
# define ZEND_ADDR_FMT "0x%08zx"
|
||||
#elif SIZEOF_SIZE_T == 8
|
||||
# define ZEND_ADDR_FMT "0x%016zx"
|
||||
|
Loading…
Reference in New Issue
Block a user