mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-7.4'
* PHP-7.4: Use *.data for fixture files
This commit is contained in:
commit
54e7acddf9
@ -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;
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user