From 2417aee259e44ada4cf376428c5c88a3038b234d Mon Sep 17 00:00:00 2001 From: Christian Seiler Date: Sat, 6 Jun 2026 12:26:01 +0200 Subject: [PATCH] PHP: fix bug in serialization code --- php/monoformat_structured.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/monoformat_structured.php b/php/monoformat_structured.php index cef9b83..19f1e3a 100644 --- a/php/monoformat_structured.php +++ b/php/monoformat_structured.php @@ -26,7 +26,7 @@ function serializePixels(array $pixels): string { function unserializePixels(int $n, string $serialized): array { $nBytes = intdiv($n + 7, 8); if (strlen($serialized) != $nBytes) { - $actual = strlen($serializd); + $actual = strlen($serialized); throw new \ValueError("Could not unserialize a pixel bitmap: the size $actual does not equal the expected $nBytes"); } $result = array_fill(0, $n, false);