Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ext/zlib/tests/gzgetss.gz
Binary file not shown.
23 changes: 23 additions & 0 deletions ext/zlib/tests/gzgetss.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--TEST--
gzgetss — Get line from gz-file pointer and strip HTML tags - function
--CREDITS--
marcosptf - <[email protected]>
--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/>
5 changes: 5 additions & 0 deletions ext/zlib/tests/gzgetss.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div>
<p class="para rdfs-comment">
<code><span class="type">string</span><span class="methodname"><strong>gzgetss</strong></span>(resource $zp, int $length [, string $allowable_tags ]);<code/>
</p>
</div>