1--TEST-- 2Test function ftruncate() on zlib wrapper by calling it with its expected arguments 3--EXTENSIONS-- 4zlib 5--FILE-- 6<?php 7$f = __DIR__."/004.txt.gz"; 8$f2 = "zlib_wrapper_ftruncate_basic.txt.gz"; 9copy($f, $f2); 10 11$h = gzopen($f2, "r"); 12ftruncate($h, 20); 13fclose($h); 14unlink($f2); 15 16$h = gzopen($f2, "w"); 17ftruncate($h, 20); 18fclose($h); 19unlink($f2); 20 21?> 22--EXPECTF-- 23Warning: ftruncate(): Can't truncate this stream! in %s on line %d 24 25Warning: ftruncate(): Can't truncate this stream! in %s on line %d 26