View Issue Details

IDProjectCategoryView StatusLast Update
0001137XdebugUncategorizedpublic2015-06-15 09:07
Reporterherb@bobbingwide.com Assigned Toderick  
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

Issue History

Date Modified Username Field Change
2015-04-08 12:43 herb@bobbingwide.com New Issue
2015-06-15 09:07 derick Note Added: 0003120
2015-06-15 09:07 derick Status new => closed
2015-06-15 09:07 derick Assigned To => derick
2015-06-15 09:07 derick Resolution open => fixed
2015-06-15 09:07 derick Fixed in Version => 2.3.3
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized