]> granicus.if.org Git - php/commitdiff
fix number format
authorAnatol Belski <ab@php.net>
Thu, 28 Aug 2014 10:07:39 +0000 (12:07 +0200)
committerAnatol Belski <ab@php.net>
Thu, 28 Aug 2014 10:07:39 +0000 (12:07 +0200)
Zend/zend_alloc.c

index 3d871381b25252c73b1c337d9ef8c082f50ff617..9467059aa9df2510ad7be59719fd045c2d049ef6 100644 (file)
@@ -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;
                }