1--TEST--
2Bug #68225 unpack and X format code
3--FILE--
4<?php
5
6$data = pack('VV', 1, 2);
7
8$result = unpack('Va/X' ,$data);
9var_dump($result);
10
11$result = unpack('Va/X4' ,$data);
12var_dump($result);
13
14$result = unpack('V1a/X4/V1b/V1c/X4/V1d', $data);
15var_dump($result);
16
17?>
18--EXPECT--
19array(1) {
20  ["a"]=>
21  int(1)
22}
23array(1) {
24  ["a"]=>
25  int(1)
26}
27array(4) {
28  ["a"]=>
29  int(1)
30  ["b"]=>
31  int(1)
32  ["c"]=>
33  int(2)
34  ["d"]=>
35  int(2)
36}
37