Lines Matching refs:compressed
11 $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';
41 // gzip: test-zlib-inflate.gz: invalid compressed data--length error
42 $compressed[strlen($compressed)-2] = 'X';
45 // The gzdecode() function applied to the corrupted compressed data always
48 echo "gzdecode(): ", rawurldecode(gzdecode($compressed)), "\n";
50 file_put_contents($fn, $compressed);