2
Test function gzread() by calling it while file open for writing
5
if (!extension_loaded("zlib")) {
6
print "skip - ZLIB extension not loaded";
12
$filename = "temp.txt.gz";
13
$h = gzopen($filename, 'w');
14
$str = "Here is the string to be written. ";
15
var_dump(gzread($h, 100));
17
var_dump(gzread($h, 100));
19
var_dump(gzread($h, 100));
22
$h = gzopen($filename, 'r');
33
Here is the string to be written.
b'\\ No newline at end of file'