View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001501 | Xdebug | Uncategorized | public | 2017-12-08 23:14 | 2017-12-28 19:16 |
Reporter | CharlotteDunois | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | PHP 7.1.11 x86, PHP 7.2.0 x64 | ||||
Product Version | 2.5.5 | ||||
Target Version | 2.6.0 | Fixed in Version | 2.6.0beta1 | ||
Summary | 0001501: Xdebug var dump tries casting properties | ||||
Description | The xdebug version of var_dump tries to cast numeric strings in class properties to integer, thus leading to wrong results. In my case those numeric strings were 64bit integers (as string, because integer overflow on 32bit systems), which ended up horribly wrong. So instead of $373556941768884244 I had ${830734356} in my dump. This behaviour seems to have started in 2.5.0 and only affects PHP 7.1 and newer. Tests have shown that PHP 7.0 is unaffected. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | |||||
PHP Version | 7.1.10-7.1.14 | ||||
|
Would you please have a code snippet for me that demonstrates this? |
|
I just tried making a verifiable example and found out, that using __debugInfo will give you the weird output. Output with debugInfo: Output without debugInfo: |
|
Thanks for your report, this should be fixed for Xdebug 2.6.0. |
|
That said, you might want to test the 2.6.0beta1 binaries when they become available. |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-12-08 23:14 | CharlotteDunois | New Issue | |
2017-12-08 23:14 | CharlotteDunois | File Added: iivfD9lzHkcmBuG6cuoQcks2BAYgz0GVX3.png | |
2017-12-09 12:42 | derick | Note Added: 0004505 | |
2017-12-09 12:42 | derick | Assigned To | => derick |
2017-12-09 12:42 | derick | Status | new => feedback |
2017-12-09 23:31 | CharlotteDunois | Note Added: 0004506 | |
2017-12-09 23:31 | CharlotteDunois | Status | feedback => assigned |
2017-12-09 23:32 | CharlotteDunois | Note Edited: 0004506 | |
2017-12-09 23:33 | CharlotteDunois | Note Edited: 0004506 | |
2017-12-10 15:17 | derick | Status | assigned => confirmed |
2017-12-10 15:17 | derick | Target Version | => 2.6.0 |
2017-12-10 15:17 | derick | Description Updated | |
2017-12-12 13:07 | derick | Note Added: 0004509 | |
2017-12-12 13:07 | derick | Status | confirmed => closed |
2017-12-12 13:07 | derick | Resolution | open => fixed |
2017-12-12 13:07 | derick | Fixed in Version | => 2.6.0 |
2017-12-12 13:07 | derick | Note Added: 0004510 | |
2017-12-28 19:16 | derick | Fixed in Version | 2.6.0 => 2.6.0beta1 |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |