From:             gharman at erols dot com
Operating system: XP & Linux
PHP version:      4.3.2
PHP Bug Type:     Variables related
Bug description:  var_export and var_dump can't output large float

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 bug report at http://bugs.php.net/?id=24640&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24640&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24640&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24640&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24640&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24640&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24640&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24640&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24640&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24640&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24640&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24640&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24640&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24640&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24640&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24640&r=gnused

Reply via email to