View Issue Details

IDProjectCategoryView StatusLast Update
0002151XdebugUncategorizedpublic2023-01-25 17:50
Reporterdgoosens Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.2.0 
Summary0002151: Xdebug alters the output of floating point numbers in var_dump
Description

when Xdebug is enabled, var_dump() rounds floating point numbers to two digits

Steps To Reproduce

cat test.php

<?php
    var_dump(.2 + .1);
sudo phpenmod xdebug
php test.php
# prints:  double(0.3)
sudo phpdismod xdebug
php test.php
# prints: float(0.30000000000000004)
Additional Information

tested on PHP8.1
PHP 8.1.13 (cli) (built: Nov 26 2022 14:07:55) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
with Zend OPcache v8.1.13, Copyright (c), by Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans

and PHP8.2
PHP 8.2.0 (cli) (built: Dec 10 2022 10:53:01) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.0, Copyright (c) Zend Technologies
with Zend OPcache v8.2.0, Copyright (c), by Zend Technologies
with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans

TagsNo tags attached.
Operating SystemPop!_OS 22.04 LTS
PHP Version8.1.10-8.1.19

Activities

dgoosens

2022-12-21 22:29

reporter   ~0006499

sorry for the formatting...
was not aware mantis had some kind of MD support now

Issue History

Date Modified Username Field Change
2022-12-21 22:18 dgoosens New Issue
2022-12-21 22:29 dgoosens Note Added: 0006499
2023-01-25 17:50 derick Steps to Reproduce Updated