1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00
Files
archived-php-src/ext/zlib/tests/zlib_scheme_fopen_variation1.phpt
T
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

25 lines
556 B
PHP

--TEST--
Test compress.zlib:// scheme with the fopen on a file scheme
--EXTENSIONS--
zlib
--FILE--
<?php
$inputFileName = __DIR__."/004.txt.gz";
$srcFile = "file://$inputFileName";
$compressedFile = "compress.zlib://$srcFile";
echo "file=$compressedFile\n\n";
$h = fopen($compressedFile, 'r');
fpassthru($h);
fclose($h);
?>
--EXPECTF--
file=compress.zlib://file://%s/004.txt.gz
When you're taught through feelings
Destiny flying high above
all I know is that you can realize it
Destiny who cares
as it turns around
and I know that it descends down on me