View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002264 | Xdebug | Uncategorized | public | 2024-04-23 16:52 | 2024-05-29 09:39 |
Reporter | connor | Assigned To | derick | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 3.2.0 | ||||
Target Version | 3.3dev | Fixed in Version | 3.3dev | ||
Summary | 0002264: Rounding of fractional numbers | ||||
Description | The following source code rounds infinite decimal fractions on several php 8 and xdebug versions. It doesn't seem to truncate the decimal part (like converting to int would do), but does a proper rounding. The problem is that in the IDE, when I look at the value of the variable, it also shows the rounded value (see attached image). With Xdebug: Without Xdebug: | ||||
Steps To Reproduce | <?php $s = 342_500; | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | macos | ||||
PHP Version | 8.2.0-8.2.9 | ||||
|
I think I looked into this in the past, and from what I remember, Xdebug uses a standard PHP API for this... that is also inconsistent. I'll have another look. |
|
It turned out that this was indeed a change in PHP 8.0.0: |
|
Fixed in GIT. |
|
Thank you very much for looking into the bug and thank you for fixing it! Kudos! |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-04-23 16:52 | connor | New Issue | |
2024-04-23 16:52 | connor | File Added: Screenshot 2024-04-23 at 18.50.14.png | |
2024-05-06 10:39 | derick | Assigned To | => derick |
2024-05-06 10:39 | derick | Status | new => acknowledged |
2024-05-06 10:39 | derick | Note Added: 0006943 | |
2024-05-10 16:32 | derick | Note Added: 0006955 | |
2024-05-10 16:32 | derick | Target Version | => 3.3dev |
2024-05-29 09:22 | derick | Status | acknowledged => closed |
2024-05-29 09:22 | derick | Resolution | open => fixed |
2024-05-29 09:22 | derick | Fixed in Version | => 3.3dev |
2024-05-29 09:22 | derick | Note Added: 0006963 | |
2024-05-29 09:39 | connor | Note Added: 0006964 |