1--TEST-- 2Test function gzrewind() by calling it with its expected arguments when writing 3--SKIPIF-- 4<?php 5if (!extension_loaded("zlib")) { 6 print "skip - ZLIB extension not loaded"; 7} 8?> 9--FILE-- 10<?php 11$f = "gzrewind_variation1.txt.gz"; 12$h = gzopen($f, 'w'); 13gzwrite($h, 'The first string.'); 14var_dump(gzrewind($h)); 15gzwrite($h, 'The second string.'); 16gzclose($h); 17 18$h = gzopen($f, 'r'); 19gzpassthru($h); 20gzclose($h); 21unlink($f); 22echo "\n"; 23?> 24--EXPECT-- 25bool(false) 26The first string.The second string. 27