Home
last modified time | relevance | path

Searched refs:compressed (Results 1 – 25 of 77) sorted by relevance

1234

/PHP-8.4/ext/zlib/tests/
H A Dinflate_get_read_len.phpt11 $compressed = zlib_encode($uncompressed, ZLIB_ENCODING_DEFLATE);
12 $compressed_len = strlen($compressed);
13 $compressed .= $random_junk;
16 $buf = inflate_add($ctx, $compressed);
20 echo 'Original compressed length: ' . $compressed_len . "\n";
21 echo 'Detected compressed length: ' . $detected_compressed_len . "\n";
27 Original compressed length: 20
28 Detected compressed length: 20
H A Dbug71417.phpt11 $compressed = (string) gzencode($plain);
14 // 1. Set a random byte in the middle of the compressed data.
19 // gzip: test-zlib-inflate.gz: invalid compressed data--crc error
20 $compressed[strlen($compressed) - 15] = 'X';
22 // 2. Truncate the compressed data.
27 $compressed = substr($compressed, 0, strlen($compressed) - 20);
34 // gzip: test-zlib-inflate.gz: invalid compressed data--crc error
35 $compressed[strlen($compressed)-5] = 'X';
42 $compressed[strlen($compressed)-2] = 'X';
48 echo "gzdecode(): ", rawurldecode(gzdecode($compressed)), "\n";
[all …]
H A Dinflate_init_reuse.phpt10 $compressed = gzencode($uncompressed);
12 for ($i=0;$i<strlen($compressed);$i++) {
13 $inflated .= inflate_add($resource, $compressed[$i]);
20 for ($i=0;$i<strlen($compressed);$i++) {
21 $inflated .= inflate_add($resource, $compressed[$i]);
H A Ddeflate_init_reuse.phpt14 $uncompressed = $compressed = "";
17 $compressed .= deflate_add($resource, $char, ZLIB_NO_FLUSH);
19 $compressed .= deflate_add($resource, "", ZLIB_FINISH);
20 assert($uncompressed === zlib_decode($compressed));
H A Dinflate_get_status.phpt11 $compressed = zlib_encode($uncompressed, ZLIB_ENCODING_DEFLATE);
12 $compressed_len = strlen($compressed);
13 $compressed .= $random_junk;
21 $buf .= inflate_add($ctx, substr($compressed, $i, 1));
32 inflate_add($ctx, substr($compressed, 0, 12));
H A Dgzuncompress_basic1.phpt13 $compressed = gzcompress($data);
16 var_dump(strcmp($data, gzuncompress($compressed)));
21 echo "Result length is ". strlen(gzuncompress($compressed, $length)) . "\n";
H A Ddeflate_add_basic.phpt50 $uncompressed = $compressed = "";
54 $compressed .= $stream->send($c);
56 $compressed .= $stream->send(null);
57 if ($uncompressed !== zlib_decode($compressed)) {
H A Dinflate_add_basic.phpt52 $compressed = zlib_encode($uncompressed, $mode);
53 $compressedLen = strlen($compressed);
59 $inflated .= $stream->send($compressed[$i]);
H A Dgzinflate_error1.phpt14 $compressed = gzcompress($data);
16 var_dump(gzinflate($compressed, $short_len));
H A Dzlib_scheme_copy_variation2.phpt2 Test compress.zlib:// scheme with the copy function: uncompressed to compressed
30 //gzopen can read compressed and uncompressed so we
32 //was compressed.
H A Dzlib_scheme_copy_basic.phpt2 Test compress.zlib:// scheme with the copy function: compressed to compressed
H A Dgzuncompress_error1.phpt12 $compressed = gzcompress($data);
14 var_dump(gzuncompress($compressed, $short_len));
/PHP-8.4/ext/bz2/tests/
H A Dbug71263.phpt11 $compressed = (string) bzcompress($plain);
12 echo "Compressed len = ", strlen($compressed), "\n";
15 // Set a random byte in the middle of the compressed data
18 $compressed[strlen($compressed) - 15] = 'X';
20 // Truncate the compressed data
23 $compressed = substr($compressed, 0, strlen($compressed) - 20);
28 $compressed[strlen($compressed)-2] = 'X';
31 file_put_contents($fn, $compressed);
/PHP-8.4/ext/phar/tests/
H A Dbug52013.phpt20 $phar = new Phar(__DIR__ . '/compressed.phar');
34 if (is_file(__DIR__ . '/compressed.phar'))
35 unlink(__DIR__ . '/compressed.phar');
H A D011.phpt15 // compressed file length does not match incompressed length for an uncompressed file
30 internal corruption of phar "%s" (compressed and uncompressed size does not match for uncompressed …
/PHP-8.4/ext/standard/tests/streams/
H A Dbug77080.phpt10 $compressed = stream_get_contents($stream);
11 var_dump(gzinflate($compressed) === $string);
H A Dbug75776.phpt19 $compressed = file_get_contents(__DIR__ . "/75776.$ext");
20 var_dump($function($compressed));
/PHP-8.4/ext/fileinfo/tests/upstream/
H A Dzstd-skippable-frame-0.result1 Zstandard compressed data (v0.2)
H A Dzstd-skippable-frame-4.result1 Zstandard compressed data (v0.3)
H A Dzstd-skippable-frame-8.result1 Zstandard compressed data (v0.4)
H A Dzstd-v0.2-FF.result1 Zstandard compressed data (v0.2)
H A Dzstd-v0.3-FF.result1 Zstandard compressed data (v0.3)
H A Dzstd-v0.4-FF.result1 Zstandard compressed data (v0.4)
H A Dzstd-v0.5-FF.result1 Zstandard compressed data (v0.5)
H A Dzstd-v0.6-FF.result1 Zstandard compressed data (v0.6)

Completed in 23 milliseconds

1234