#24640 [Opn->Asn]: var_export and var_dump can't output large float
ID: 24640
Updated by: sniper@php.net
Reported By: gharman at erols dot com
-Status: Open
+Status: Assigned
Bug Type: Variables related
-Operating System: XP & Linux
+Operating System: *
-PHP Version: 4.3.2
+PHP Version: 4.3.3RC2-dev, PHP 5.0.0b2-dev
-Assigned To:
+Assigned To: helly
New Comment:
Marcus, this is again spprintf() that is broken.. :)
Previous Comments:
------------------------------------------------------------------------
[2003-07-13 21:25:33] gharman at erols dot com
Description:
------------
Given $v = 1.7e+300, both var_dump and var_export output 0.E+79. Echo
and print_r produce expected result.
Reproduce code:
---------------
<?php
$v = 1.7e+300;
echo var_export($v, true) . '<br />';
var_dump($v);
echo "<br />$v<br />";
print_r($v);
?>
Expected result:
----------------
1.7E+300
float(1.7E+300)
1.7E+300
1.7E+300
Actual result:
--------------
0.E+79
float(0.E+79)
1.7E+300
1.7E+300
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24640&edit=1
Thread (3 messages)