]> granicus.if.org Git - php/commitdiff
fix apr_psprintf format string from e0df4e3dba7c4ab92442b9e82c1de01fdbaa3cce
authorJeff Trawick <trawick@gmail.com>
Sun, 13 Apr 2014 20:37:16 +0000 (16:37 -0400)
committerStanislav Malyshev <stas@php.net>
Sun, 13 Apr 2014 22:36:43 +0000 (15:36 -0700)
NEWS
sapi/apache2handler/sapi_apache2.c

diff --git a/NEWS b/NEWS
index 4d5441e28ed06ea9db0392bc75f81f75f387a1c2..25d093f50ae8344f5965d9a780c58280ccf34b35 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,11 @@ PHP                                                                        NEWS
   . Fixed bug #53965 (<xsl:include> cannot find files with relative paths
     when loaded with "file://"). (Anatol)
 
+- Apache2 Handler SAPI:
+  . Fixed Apache log issue caused by APR's lack of support for %zu 
+    (APR issue https://issues.apache.org/bugzilla/show_bug.cgi?id=56120).
+    (Jeff Trawick)
+
 03 Apr 2014, PHP 5.4.27
 
 - Core:
index d2b3a327ff9ef4480331f34f260c0daeb739c68e..e97f11c69bdaaa2971a6dfd84ad5e43f261af899 100644 (file)
@@ -670,7 +670,7 @@ zend_first_try {
                }
 
                apr_table_set(r->notes, "mod_php_memory_usage",
-                       apr_psprintf(ctx->r->pool, "%zu", zend_memory_peak_usage(1 TSRMLS_CC)));
+                       apr_psprintf(ctx->r->pool, "%" APR_SIZE_T_FMT, zend_memory_peak_usage(1 TSRMLS_CC)));
        }
 
 } zend_end_try();