maximebf / php-debugbar

Debug bar for PHP
phpdebugbar.com
MIT License
4.2k stars 402 forks source link

Messages not rendering in order #222

Open babydraz opened 9 years ago

babydraz commented 9 years ago

This may not be the standard use case, but I was adding a number of messages at once and found that they rendered in the debug bar in a random order. Any ideas how to correct?

$debugbar['messages']->error('test'); $debugbar['messages']->warning('test'); $debugbar['messages']->notice('test'); $debugbar['messages']->alert('test'); $debugbar['messages']->debug('test');

$debugbar['messages']->info('test1'); $debugbar['messages']->info('test2'); $debugbar['messages']->info('test3'); $debugbar['messages']->info('test4');

image

jaymiethomas commented 8 years ago

I'm also getting this issue, but only when running debugbar under PHP on Windows. On OS X the messages appear in the correct order. Did you find out what causes this, or did you use another workaround?

jaymiethomas commented 8 years ago

Upon further investigation, it looks like under Windows the messages are processed in a parallel fashion rather than in the serial sequence we see under OS X. Debugbar is simply reading the order of the messages in the JSON file of the produced output, so I wonder whether this is more a lower-level issue or difference between PHP on Windows and OS X than an issue in the front-end display.