Merge branch 'PHP-7.4'

* PHP-7.4:
  Use *.data for fixture files
This commit is contained in:
Peter Kokot 2019-05-17 04:00:04 +02:00
commit 54e7acddf9
3 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@ Bug #73944: Dictionary option of intflate_init() does not work
<?php
$in = inflate_init(ZLIB_ENCODING_RAW, array('dictionary' => str_repeat("\00", 32768)));
$a = inflate_add($in, file_get_contents(__DIR__.'/bug73944_fixture1'));
$a = inflate_add($in, file_get_contents(__DIR__.'/bug73944_fixture_1.data'));
echo '1 block: '.strlen($a).PHP_EOL;
$in = inflate_init(ZLIB_ENCODING_RAW, array('dictionary' => $a));
$b = inflate_add($in, file_get_contents(__DIR__.'/bug73944_fixture2'));
$b = inflate_add($in, file_get_contents(__DIR__.'/bug73944_fixture_2.data'));
echo '2 block: '.($b === false ? 'failed' : strlen($b)).PHP_EOL;
?>