1--TEST-- 2Bug #73944: Dictionary option of intflate_init() does not work 3--SKIPIF-- 4<?php if(!extension_loaded('zlib')) die('skip zlib extension not loaded'); ?> 5--FILE-- 6<?php 7 8$in = inflate_init(ZLIB_ENCODING_RAW, array('dictionary' => str_repeat("\00", 32768))); 9$a = inflate_add($in, file_get_contents(__DIR__.'/bug73944_fixture1')); 10echo '1 block: '.strlen($a).PHP_EOL; 11 12$in = inflate_init(ZLIB_ENCODING_RAW, array('dictionary' => $a)); 13$b = inflate_add($in, file_get_contents(__DIR__.'/bug73944_fixture2')); 14echo '2 block: '.($b === false ? 'failed' : strlen($b)).PHP_EOL; 15 16?> 17--EXPECT-- 181 block: 32768 192 block: 32768 20