Apache mod_php_memory_usage prints "% zu" instead of payload
Using below LogFormat:
LogFormat "%h %l %u %t \"%r\" %>s %b php(%{mod_php_memory_usage}n)" vhost_combined_memory
Apache does not print the memory used by PHP for each request:
IP - - [04/Feb/2014:23:22:49 +1300] "GET /icinga-web/modules/cronks/statusOverall/json?_dc=1391509810557 HTTP/1.1" 200 554 php(%zu)
IP - - [04/Feb/2014:23:22:50 +1300] "GET /icinga-web/modules/cronks/monitorPerformance/json?_dc=1391509810614 HTTP/1.1" 200 378 php(%zu)
IP - - [04/Feb/2014:23:23:49 +1300] "GET /icinga-web/modules/appkit/servertime HTTP/1.1" 200 33 php(%zu)
Appears instead of a number %zu.
Is there any change I can make on the server to make this database display correctly in my logs?
Running this problem myself. The problem is not in php or even Apache httpd. This is the APR. They used their own printf extension instead of using stdio.
So you can see around line 850 ... https://svn.apache.org/viewvc/apr/apr/trunk/strings/apr_snprintf.c?view=markup
... , , "z".
, . % zu % lu php, , .