|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7494 Unpack("H*",... doesn't work
Submitted: 2000-10-27 16:12 UTC Modified: 2000-10-30 09:48 UTC
From: honzam at ecn dot cz Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.3pl1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: honzam at ecn dot cz
New email:
PHP Version: OS:


 [2000-10-27 16:12 UTC] honzam at ecn dot cz
It looks, that unpack("H*", ... doesn't work correctly - it gives me no result. The script:

$a = 'abcdefg';

$arr = unpack("H*",$a);
echo "<BR>H*: ". $arr[""];

$arr = unpack("H14",$a);
echo "<BR>H14: ". $arr[""];

gives me this otput:
H14: 61626364656667

In 3.0.16 workt the first unpack() line correctly (the second not, but never mind).



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-30 09:48 UTC]
H14 works OK
H* fixed in CVS.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 04:01:28 2024 UTC