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===DONE===
19--EXPECTF--
20array(1) {
21  ["a"]=>
22  int(1)
23}
24array(1) {
25  ["a"]=>
26  int(1)
27}
28array(4) {
29  ["a"]=>
30  int(1)
31  ["b"]=>
32  int(1)
33  ["c"]=>
34  int(2)
35  ["d"]=>
36  int(2)
37}
38===DONE===
39