1--TEST--
2Bug #35817 (unpack() does not decode odd number of hexadecimal values)
3--FILE--
4<?php
5$a = pack("H3","181");
6$b = unpack("H3", $a);
7var_dump($b);
8
9$a = pack("H2","18");
10$b = unpack("H2", $a);
11var_dump($b);
12
13$a = pack("H","1");
14$b = unpack("H", $a);
15var_dump($b);
16?>
17--EXPECT--
18array(1) {
19  [1]=>
20  string(3) "181"
21}
22array(1) {
23  [1]=>
24  string(2) "18"
25}
26array(1) {
27  [1]=>
28  string(1) "1"
29}
30