1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/ext/standard/tests/strings/unpack_bug68225.phpt
T
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

37 lines
432 B
PHP

--TEST--
Bug #68225 unpack and X format code
--FILE--
<?php
$data = pack('VV', 1, 2);
$result = unpack('Va/X' ,$data);
var_dump($result);
$result = unpack('Va/X4' ,$data);
var_dump($result);
$result = unpack('V1a/X4/V1b/V1c/X4/V1d', $data);
var_dump($result);
?>
--EXPECT--
array(1) {
["a"]=>
int(1)
}
array(1) {
["a"]=>
int(1)
}
array(4) {
["a"]=>
int(1)
["b"]=>
int(1)
["c"]=>
int(2)
["d"]=>
int(2)
}