mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
23 lines
424 B
PHP
23 lines
424 B
PHP
--TEST--
|
|
Test function gzrewind() by calling it with its expected arguments when writing
|
|
--EXTENSIONS--
|
|
zlib
|
|
--FILE--
|
|
<?php
|
|
$f = "gzrewind_variation1.txt.gz";
|
|
$h = gzopen($f, 'w');
|
|
gzwrite($h, 'The first string.');
|
|
var_dump(gzrewind($h));
|
|
gzwrite($h, 'The second string.');
|
|
gzclose($h);
|
|
|
|
$h = gzopen($f, 'r');
|
|
gzpassthru($h);
|
|
gzclose($h);
|
|
unlink($f);
|
|
echo "\n";
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
The first string.The second string.
|