View Issue Details

IDProjectCategoryView StatusLast Update
0001383XdebugUncategorizedpublic2017-02-07 17:36
ReporterDevDonkey Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version2.2.5 
Summary0001383: view variables at breakpoint reordering array elements
Description

scenario:

(when using phpstorm 2016.2)

you have an array with the following structure (note last element is indexed '0'):

array(5) {
[1]=>
string(5) "first"
[2]=>
string(6) "second"
[3]=>
string(5) "third"
[4]=>
string(5) "forth"
[0]=>
string(4) "test"
}

when you set a breakpoint, freeze the code and inspect the array in the debug window.

The array will be displayed as:

0 = "test"
1 = "first"
2 = "second"
3 = "third"
4 = "forth"

instead of

1 = "first"
2 = "second"
3 = "third"
4 = "forth"
0 = "test"

Steps To Reproduce

set appropriate breakpoint
run code
inspect array

var_dump array instead of freezing to compare.

TagsNo tags attached.
Operating System
PHP Version5.6.25-5.6.29

Activities

derick

2017-01-03 15:19

administrator   ~0004106

Can you make a remote log as per https://xdebug.org/support.php#remote ?

I think this does not happen in Xdebug, but in PhpStorm instead.

derick

2017-02-07 17:36

administrator   ~0004206

I can not reproduce this. PhpStorm 2016.3 does the right thing, as you can see at http://derickrethans.nl/files/dump/1383.png

Please reopen if you can produce a short reproducible same as described at https://xdebug.org/support.php#remote

Issue History

Date Modified Username Field Change
2017-01-03 14:17 DevDonkey New Issue
2017-01-03 15:19 derick Note Added: 0004106
2017-01-03 15:19 derick Assigned To => derick
2017-01-03 15:19 derick Status new => feedback
2017-02-07 17:36 derick Note Added: 0004206
2017-02-07 17:36 derick Status feedback => resolved
2017-02-07 17:36 derick Resolution open => unable to reproduce
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized