--TEST-- Bug #61038: unpack("a5", "str\0\0") does not work as expected --FILE-- --EXPECTF-- array(1) { [1]=> string(4) "str%c" } array(1) { [1]=> string(5) "str%c%c" } Warning: unpack(): Type a: not enough input values, need 6 values but only 5 were provided in %s on line %d bool(false) array(1) { [1]=> string(5) "str%c%c" }