]> granicus.if.org Git - php/commitdiff
Use *.data for fixture files
authorPeter Kokot <peterkokot@gmail.com>
Fri, 17 May 2019 01:59:23 +0000 (03:59 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Fri, 17 May 2019 01:59:23 +0000 (03:59 +0200)
ext/zlib/tests/bug73944.phpt
ext/zlib/tests/bug73944_fixture_1.data [moved from ext/zlib/tests/bug73944_fixture1 with 100% similarity]
ext/zlib/tests/bug73944_fixture_2.data [moved from ext/zlib/tests/bug73944_fixture2 with 100% similarity]

index 61be632b5cb12a4aea4f0a4f73274063080c1553..b23a9bafd3e9f8d6c4ea3b530025a5d34bb9460c 100644 (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;
 
 ?>