View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001478 | Xdebug | Usage problems (Wrong Results) | public | 2017-10-08 10:47 | 2018-01-29 21:56 |
Reporter | aik099 | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | duplicate | ||
Product Version | 2.4.0 | ||||
Target Version | Fixed in Version | ||||
Summary | 0001478: Object properties with dash can't be inspected | ||||
Description | I've used `json_decode` (as object, not an array) on contents of `composer.json` file that has `require-dev` key in it. In PhpStorm, when attempting to see what's inside `require-dev` the content wasn't shown, because xdebug tried to get `require` object property value instead of `require-dev`. | ||||
Tags | No tags attached. | ||||
Operating System | Slackware | ||||
PHP Version | 5.4.45-5.4.50 | ||||
|
Can you please follow the instructions at https://xdebug.org/support.php#remote ? |
|
xdebug_remote.log (20,882 bytes) |
|
Script: <?php $json = <<<JSON { "autoload": { "psr-4": { "aik099\\\\": "./src/" } }, "require-dev": { "aik099/coding-standard": "dev-master" } } JSON; $parsed = json_decode($json); // Try viewing details of "$parsed->{require-dev} key in the PhpStorm's "Variables" panel. echo ''; ?> CLI output (when attempting to view class property with dash): PHP Notice: Undefined property: stdClass::$psr in .../remote_debug_bug.php on line 18 PHP Stack trace: PHP 1. {main}() .../remote_debug_bug.php:0 PHP Notice: Undefined property: stdClass::$require in .../remote_debug_bug.php on line 18 PHP Stack trace: PHP 1. {main}() .../remote_debug_bug.php:0 Remote debug log attached above. |
|
Duplicate of 0001520, which has a better description. |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-10-08 10:47 | aik099 | New Issue | |
2017-10-08 10:58 | derick | Note Added: 0004438 | |
2017-10-08 10:58 | derick | Assigned To | => derick |
2017-10-08 10:58 | derick | Status | new => feedback |
2017-10-08 11:20 | aik099 | File Added: xdebug_remote.log | |
2017-10-08 11:21 | aik099 | Note Added: 0004439 | |
2017-10-08 11:21 | aik099 | Status | feedback => assigned |
2017-10-08 11:21 | aik099 | Note Edited: 0004439 | View Revisions |
2018-01-29 21:56 | derick | Note Added: 0004588 | |
2018-01-29 21:56 | derick | Relationship added | duplicate of 0001520 |
2018-01-29 21:56 | derick | Status | assigned => resolved |
2018-01-29 21:56 | derick | Resolution | open => duplicate |