1--TEST-- 2Test function fflush() on a zlib stream wrapper 3--EXTENSIONS-- 4zlib 5--FILE-- 6<?php 7 8$filename = "zlib_wrapper_fflush_basic.txt.gz"; 9$h = gzopen($filename, 'w'); 10$str = "Here is the string to be written."; 11$length = 10; 12var_dump(fflush($h)); 13gzwrite( $h, $str); 14gzwrite( $h, $str); 15var_dump(fflush($h)); 16gzclose($h); 17 18$h = gzopen($filename, 'r'); 19gzpassthru($h); 20gzclose($h); 21echo "\n"; 22unlink($filename); 23?> 24--EXPECT-- 25bool(true) 26bool(true) 27Here is the string to be written.Here is the string to be written. 28