Export to GitHub

firephp - issue #194

array elements displayed in wrong order


Posted on Jun 20, 2013 by Happy Wombat

What versions and operating system are you using?

OS: linux Firefox: 21 Firebug:1.11.4 FirePHP Server Library: @copyright Copyright (C) 2007-2009 Christoph Dorn FirePHP Extension: 0.7.2

What is the problem?

When displaying arrays, there can be some mismatched between what firephp displays and what the value of a variable actually is.

If I have a PHP array containing : [10=>A,5=>B,12=>C], firephp will display this array instead: [5=>B,10=>A,12=>C]

What steps will reproduce the problem? 1. assign [10=>A,5=>B,12=>C] to a $variable 2. fb($variable) 3. displays array's element in wrong order

What is the expected output? What do you see instead?

[10=>A,5=>B,12=>C]

[5=>B,10=>A,12=>C]

Please provide any additional information below.

I use fb(print_r($variable,true) ); instead. Other user may not understand that the

Comment #1

Posted on Jun 20, 2013 by Happy Camel

(No comment was entered for this change.)

Status: Accepted

Labels:
Type-Defect Priority-Medium