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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 23:01:26 2024 UTC