Skip to content

Commit c45730a

Browse files
HuongNV13btry
authored andcommitted
Fix PHP8.2 str_split function returns empty arrays for empty strings
1 parent b7e9073 commit c45730a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CFPropertyList/CFBinaryPropertyList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ public static function unpackWithSize($nbytes, $buff)
738738
$format = $formats[$nbytes-1];
739739

740740
if ($nbytes == 3) {
741-
$buff = "\0" . implode("\0", str_split($buff, 3));
741+
$buff = "\0" . implode("\0", mb_str_split($buff, 3));
742742
}
743743
return unpack($format, $buff);
744744
}

0 commit comments

Comments
 (0)