View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001527 | Xdebug | Uncategorized | public | 2018-02-15 15:14 | 2018-02-18 15:35 |
| Reporter | okriz | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Product Version | 2.6.0 | ||||
| Summary | 0001527: true shown as false in PhpStorm Debug->Variables view under UTF-8 Keys (array, stdClass) | ||||
| Description | When inspecting a variable (array or stdClass) with UTF-8 key(s) in PhpStorm:
Discovered while inspecting json_decoded'ed structures containing German Umlauts | ||||
| Steps To Reproduce | Test file will get attached | ||||
| Additional Information | Tested and reproduced this behavior with: PhpStorm 2017.3 in combination with: PHP 7.2.0 (cli) (built: Dec 12 2017 17:02:58) ( NTS ) as well as: PhpStorm 2017.3.4 in combination with PHP 7.2.2 (cli) (built: Feb 14 2018 18:26:07) ( NTS ) Executed with: | ||||
| Tags | No tags attached. | ||||
| Operating System | Mac OS X High Sierra 10.13.3 | ||||
| PHP Version | 7.2.0-7.2.4 | ||||
|
|
I checked the xdebug.log remote log and it seems alright. Not sure what causes this strange behavior. Maybe it's on jetbrains - not sure how the different debug views are executed |
|
|
Hi, I can reproduce this with PhpStorm, but I also believe that's where the problem lies. The output in Xdebug for: property_get -i 44 -n "$jsonArray[\"ΓΌ2\"]" -d 0 -c 0 -p 0 returns (correctly): <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transaction_id="44"><property type="array" children="1" numchildren="2" page="0" pagesize="100"><name encoding="base64"><![CDATA[JGpzb25BcnJheVsiw7wyIl0=]]></name><fullname encoding="base64"><![CDATA[JGpzb25BcnJheVsiw7wyIl0=]]></fullname><property name="true" type="bool"><fullname encoding="base64"><![CDATA[JGpzb25BcnJheVsiw7wyIl1bInRydWUiXQ==]]></fullname><value encoding="base64"><![CDATA[MQ==]]></value></property><property name="false" type="bool"><fullname encoding="base64"><![CDATA[JGpzb25BcnJheVsiw7wyIl1bImZhbHNlIl0=]]></fullname><value encoding="base64"><![CDATA[MA==]]></value></property></property></response> The values (<![CDATA[MQ==]]>) and (<![CDATA[MA==]]>) are "1" and "0" respectively, but PhpStorm shows them both as false in the UI. I filed the following ticket with them: https://youtrack.jetbrains.com/issue/WI-40762 And I'm closing this issue, as this is not a bug in Xdebug. Thanks for the detailed report! cheers, |