|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-28 21:57 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
Description: ------------ (sorry for my poor english.....) It seems unpack can not deal with an odd number of hex string args. Under a xterm, it will cause "xterm" displayed on term. Reproduce code: --------------- <?php $a=pack("H3i","181",5); $b=unpack("H3/ias",$a); var_dump($b); ?> Expected result: ---------------- array(2){ [1]=> string(3)"181" ["as"]=> int(5) } Actual result: -------------- array(2){ [1]=> string(2)"18" ["as"]=> int(1296) }