mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
25 lines
451 B
PHP
25 lines
451 B
PHP
--TEST--
|
|
Test compress.zlib:// scheme with the file_get_contents
|
|
--EXTENSIONS--
|
|
zlib
|
|
--FILE--
|
|
<?php
|
|
$outputFileName = __FILE__.'tmp';
|
|
$outFile = "compress.zlib://$outputFileName";
|
|
$data = <<<EOT
|
|
Here is some plain
|
|
text to be read
|
|
and displayed.
|
|
EOT;
|
|
|
|
file_put_contents($outFile, $data);
|
|
$h = gzopen($outputFileName, 'r');
|
|
gzpassthru($h);
|
|
gzclose($h);
|
|
echo "\n";
|
|
unlink($outputFileName);
|
|
?>
|
|
--EXPECT--
|
|
Here is some plain
|
|
text to be read
|
|
and displayed.
|