php-debugbar icon indicating copy to clipboard operation
php-debugbar copied to clipboard

Messages not rendering in order

Open babydraz opened this issue 10 years ago • 2 comments

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

babydraz avatar Jul 21 '15 05:07 babydraz

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 avatar Jan 05 '16 12:01 jaymiethomas

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.

jaymiethomas avatar Jan 05 '16 17:01 jaymiethomas