xref: /PHP-5.4/ext/zlib/tests/bug61287.phpt (revision 39d2996c)
1--TEST--
2bug #61287 - inflate needs the terminating null byte
3--SKIPIF--
4<?php extension_loaded("zlib") or die("SKIP need zlib");
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