1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/zlib/tests/gzopen_variation6.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

36 lines
653 B
PHP

--TEST--
Test gzopen() function : variation: relative/absolute file
--EXTENSIONS--
zlib
--FILE--
<?php
echo "*** Testing gzopen() : variation ***\n";
$absfile = __FILE__.'.tmp';
$relfile = "gzopen_variation6.tmp";
$h = gzopen($absfile, "w");
gzwrite($h, "This is an absolute file");
gzclose($h);
$h = gzopen($relfile, "w");
gzwrite($h, "This is a relative file");
gzclose($h);
$h = gzopen($absfile, "r");
gzpassthru($h);
fclose($h);
echo "\n";
$h = gzopen($relfile, "r");
gzpassthru($h);
gzclose($h);
echo "\n";
unlink($absfile);
unlink($relfile);
?>
--EXPECT--
*** Testing gzopen() : variation ***
This is an absolute file
This is a relative file