Skip to content

Commit

Permalink
Use *.data for fixture files
Browse files Browse the repository at this point in the history
  • Loading branch information
petk committed May 17, 2019
1 parent 16e910c commit bd1bd38
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/zlib/tests/bug73944.phpt
Expand Up @@ -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;

?>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit bd1bd38

Please sign in to comment.