php.net |  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 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: 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:
H*: 
H14: 61626364656667

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

   Honza
   honzam@ecn.cz

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-30 09:48 UTC] stas@php.net
H14 works OK
H* fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC