#24640 [Asn->Csd]: var_export and var_dump can't output large float
| From: | helly@php.net | Date: | Thu, 17 Jul 2003 22:19:40 +0000 |
| Subject: | #24640 [Asn->Csd]: var_export and var_dump can't output large float | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44209@lists.php.net to get a copy of this message | ||
ID: 24640
Updated by: helly@php.net
Reported By: gharman at erols dot com
-Status: Assigned
+Status: Closed
Bug Type: Variables related
Operating System: *
-PHP Version: 4.3.3RC2-dev, PHP 5.0.0b2-dev
+PHP Version: 4.3.3RC2-dev
Assigned To: helly
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-07-13 21:49:23] sniper@php.net
Marcus, this is again spprintf() that is broken.. :)
------------------------------------------------------------------------
[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