1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use *.data for fixture files

This commit is contained in:
Peter Kokot
2019-05-17 03:59:23 +02:00
parent 16e910ccfd
commit bd1bd38a35
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;
?>