View Issue Details

IDProjectCategoryView StatusLast Update
0002063XdebugStep Debuggingpublic2022-04-04 11:32
Reporterhacfi Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version3.1.2 
Target Version3.1devFixed in Version3.1.4 
Summary0002063: Can't inspect ArrayObject storage elements
Description

When working with the ecommerce platform Spryker the contents of ArrayObjects can't be viewed in PhpStorm. ArrayObject is widely used in Spryker and the only way to view the data currently is using "Evaluate expression" and then call "->getArrayCopy();" on the ArrayObject.

Steps To Reproduce

Follow Spryker's installation guide at https://docs.spryker.com/docs/scos/dev/setup/installing-spryker-with-docker/installation-guides/installing-in-development-mode-on-macos-and-linux.html#installing-docker-prerequisites-on-macos-and-linux and either set up the b2b or b2c suite.

TagsNo tags attached.
Operating SystemmacOS but I know it's the same issue on Ubuntu
PHP Version7.4.20-7.4.29

Activities

derick

2022-02-18 14:42

administrator   ~0006202

Hi,

Installing and learning a whole new platform is not a reasonable ask to try to reproduce a bug.

Please provide a short reproducible scripts as is explained at http://xdebug.org/reporting-bugs

cheers
Derick

hacfi

2022-02-18 14:56

reporter   ~0006203

Thanks, will provide a reproducible script next week!

derick

2022-02-21 10:06

administrator   ~0006205

Moving this back to feedback until I see the short reproducible script.

hacfi

2022-02-27 09:11

reporter   ~0006222

This small script should make it reproduccible. I thought it was only an issue with PHP 7.4 but just noticed it also affects PHP 8.0.

derick

2022-03-07 19:12

administrator   ~0006234

I've confirmed this, with an even much smaller test script:

<?php
$permissions = new ArrayObject();
$permissions->append(1);
$stop = 1;

With the breakpoint on the $stop = 1; line.

derick

2022-03-09 15:14

administrator   ~0006237

https://github.com/xdebug/xdebug/pull/826