|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
43 + 11 = ?
Subscribe to this entry?

 [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-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 20 22:03:51 2023 UTC