mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
22 lines
501 B
PHP
22 lines
501 B
PHP
--TEST--
|
|
gzgetss — Get line from gz-file pointer and strip HTML tags - function
|
|
--CREDITS--
|
|
marcosptf - <marcosptf@yahoo.com.br>
|
|
--SKIPIF--
|
|
<?php
|
|
|
|
<?php
|
|
if(!extension_loaded("zlib")){die("skip - ZLIB extension not loaded");}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$handle = gzopen(__DIR__ . '/gzgetss.gz', 'r');
|
|
|
|
while (!gzeof($handle)){
|
|
$buffer = gzgetss($handle, 4096, "<code>");
|
|
print($buffer);
|
|
}
|
|
gzclose($handle);
|
|
?>
|
|
--EXPECT--
|
|
<code>stringgzgetss(resource $zp, int $length [, string $allowable_tags ]);<code/>
|