mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
25 lines
376 B
PHP
25 lines
376 B
PHP
--TEST--
|
|
bug #61287 - inflate needs the terminating null byte
|
|
--EXTENSIONS--
|
|
zlib
|
|
--FILE--
|
|
<?php
|
|
$array = array(
|
|
'region_id' => 1,
|
|
'discipline' => 23,
|
|
'degrees' => array(),
|
|
'country_id' => 27
|
|
);
|
|
|
|
$serialized = serialize($array);
|
|
|
|
$deflated = gzdeflate($serialized, 9);
|
|
$inflated = gzinflate($deflated);
|
|
|
|
echo strlen($inflated),"\n";
|
|
?>
|
|
Done
|
|
--EXPECT--
|
|
92
|
|
Done
|