TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
400 B

--TEST--
Bug #35817 (unpack() does not decode odd number of hexadecimal values)
--FILE--
<?php
$a = pack("H3","181");
$b = unpack("H3", $a);
var_dump($b);
$a = pack("H2","18");
$b = unpack("H2", $a);
var_dump($b);
$a = pack("H","1");
$b = unpack("H", $a);
var_dump($b);
?>
--EXPECT--
array(1) {
[1]=>
string(3) "181"
}
array(1) {
[1]=>
string(2) "18"
}
array(1) {
[1]=>
string(1) "1"
}