1--TEST--
2Test compress.zlib:// scheme with the file_get_contents
3--SKIPIF--
4<?php
5if (!extension_loaded("zlib")) {
6	print "skip - ZLIB extension not loaded";
7}
8?>
9--FILE--
10<?php
11$outputFileName = __FILE__.'tmp';
12$outFile = "compress.zlib://$outputFileName";
13$data = <<<EOT
14Here is some plain
15text to be read
16and displayed.
17EOT;
18
19file_put_contents($outFile, $data);
20$h = gzopen($outputFileName, 'r');
21gzpassthru($h);
22gzclose($h);
23echo "\n";
24unlink($outputFileName);
25?>
26===DONE===
27--EXPECT--
28Here is some plain
29text to be read
30and displayed.
31===DONE===
32