From: Anatol Belski Date: Thu, 28 Aug 2014 10:07:39 +0000 (+0200) Subject: fix number format X-Git-Tag: PRE_PHP7_REMOVALS~227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6890830ec0209f9b2d07f58bf78c3c8c1048ebac;p=php fix number format --- diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 3d871381b2..9467059aa9 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -1535,9 +1535,9 @@ static void *zend_mm_alloc_huge(zend_mm_heap *heap, size_t size ZEND_FILE_LINE_D if (heap->real_size + new_size > heap->limit) { if (heap->overflow == 0) { #if ZEND_DEBUG - zend_mm_safe_error(heap, "Allowed memory size of %ld bytes exhausted at %s:%d (tried to allocate %lu bytes)", heap->limit, __zend_filename, __zend_lineno, size); + zend_mm_safe_error(heap, "Allowed memory size of " ZEND_ULONG_FMT " bytes exhausted at %s:%d (tried to allocate %lu bytes)", heap->limit, __zend_filename, __zend_lineno, size); #else - zend_mm_safe_error(heap, "Allowed memory size of %ld bytes exhausted (tried to allocate %lu bytes)", heap->limit, size); + zend_mm_safe_error(heap, "Allowed memory size of " ZEND_ULONG_FMT " bytes exhausted (tried to allocate %lu bytes)", heap->limit, size); #endif return NULL; }