View Issue Details

IDProjectCategoryView StatusLast Update
0001137XdebugUncategorizedpublic2015-06-15 09:07
Reporterherb@bobbingwide.com Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.3.2 
Fixed in Version2.3.3 
Summary0001137: Windows does not support %zu formatting for sprintf
Description

With xdebug.trace_format=0
trace output contains unexpected zu
on a Windows 8 machine.

TRACE START [2015-04-08 12:38:10]
0.0018 zu
TRACE END [2015-04-08 12:38:10]

Windows does not support the z prefix for the size.
See Note in https://msdn.microsoft.com/en-us/library/tcxf1dw6.aspx

Steps To Reproduce

This should create the problem

<?php xdebug_start_trace();

Additional Information

Specific source line causing this problem.

fprintf(context->trace_file, "%10zu", zend_memory_usage(0 TSRMLS_CC));

in xdebug_trace_textual_write_footer()
in https://github.com/xdebug/xdebug/blob/master/xdebug_trace_textual.c

I've not checked for other uses.

TagsNo tags attached.
Operating SystemWindows 8
PHP Version5.5.15-5.5.19

Activities

derick

2015-06-15 09:07

administrator   ~0003120

Fixed for Xdebug 2.3.3, and 3.0dev