xref: /PHP-8.2/ext/zlib/tests/bug61287.phpt (revision 39131219)
1--TEST--
2bug #61287 - inflate needs the terminating null byte
3--EXTENSIONS--
4zlib
5--FILE--
6<?php
7$array = array(
8    'region_id' => 1,
9    'discipline' => 23,
10    'degrees' => array(),
11    'country_id' => 27
12);
13
14$serialized = serialize($array);
15
16$deflated = gzdeflate($serialized, 9);
17$inflated = gzinflate($deflated);
18
19echo strlen($inflated),"\n";
20?>
21Done
22--EXPECT--
2392
24Done
25