PHP 4.0 Bug #6639 Updated: Pack/Unpack problem
| From: | Bug Database | Date: | Sun, 10 Sep 2000 11:20:02 +0000 |
| Subject: | PHP 4.0 Bug #6639 Updated: Pack/Unpack problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32816@lists.php.net to get a copy of this message | ||
ID: 6639
Updated by: stas
Reported By: ed_zhang@excite.com
Status: Closed
Bug Type: Unknown/Other Function
Assigned To:
Comments:
Fixed in CVS
Previous Comments:
---------------------------------------------------------------------------
[2000-09-09 09:57:21] ed_zhang@excite.com
Hi friends,
Please try following PHP code:
<?
$a=unpack("dx",pack("d",3.1415926));
print($a["x"]);
?>
It's supposed to be "3.1415926", but it return "6.3886672646707E-315".
It seems the problem appears in all versions of PHP4, includes PHP 4.0, PHP 4.0.1, PHP 4.0.1 pl2 and
PHP 4.0.2, under Windows 98 environment.
Thanks & Regards,
Edward Zhang
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6639