php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6639 Pack/Unpack problem
Submitted: 2000-09-09 09:57 UTC Modified: 2000-09-10 07:20 UTC
From: ed_zhang at excite dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.2 OS: Windows 98
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ed_zhang at excite dot com
New email:
PHP Version: OS:

 

 [2000-09-09 09:57 UTC] ed_zhang at excite dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-10 07:20 UTC] stas@php.net
Fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC