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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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: Fri May 24 10:01:33 2024 UTC