MantisBT - Xdebug
View Issue Details
0001137XdebugUsage problems (Wrong Results)public2015-04-08 13:432015-06-15 10:07
herb@bobbingwide.com 
derick 
lowminoralways
closedfixed 
2.3.2 
2.3.3 
Windows 8
5.5.15-5.5.19
0001137: Windows does not support %zu formatting for sprintf
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 [^]

This should create the problem

<?php xdebug_start_trace();
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.
No tags attached.
Issue History
2015-04-08 13:43herb@bobbingwide.comNew Issue
2015-06-15 10:07derickNote Added: 0003120
2015-06-15 10:07derickStatusnew => closed
2015-06-15 10:07derickAssigned To => derick
2015-06-15 10:07derickResolutionopen => fixed
2015-06-15 10:07derickFixed in Version => 2.3.3
2016-07-31 13:36derickCategoryUsage problems => Usage problems (Crashes)
2016-07-31 13:38derickCategoryUsage problems (Crashes) => Usage problems (Wrong Results)

Notes
(0003120)
derick   
2015-06-15 10:07   
Fixed for Xdebug 2.3.3, and 3.0dev