Zend Framework

Firebug profiler table breaks when sending query times as float

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.1
  • Fix Version/s: 1.6.2
  • Component/s: Zend_Db_Profiler
  • Labels:
    None

Description

Zend_Db_Profiler_Firebug. Query times are passed to firebug as float
without quoting which results as 4 cols table JSON in headers. Eg.:

[0,00011,"SET CHARACTER SET utf8",null]
^ ^

result is broken (shifted) table in firebug. eg:

Time | Event | Parameters | [null] |
0 | 11 | SET CHARACTER SET utf8 | [null] |

instead of expected:

Time | Event | Parameters |
0,00011 | SET CHARACTER SET utf8 | [null] |

The problem is only evident when using locales that use commas in float values.

Proposed workaround is to cast query times to string.

Activity

Hide
Christoph Dorn added a comment -

See ZF-4437 for proper solution.

Show
Christoph Dorn added a comment - See ZF-4437 for proper solution.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: