8000 test to gzgetss function by marcosptf · Pull Request #1479 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

test to gzgetss function #1479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
10 changes: 6 additions & 4 deletions ext/zlib/tests/gzgetss.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ if(!extension_loaded("zlib")){die("skip - ZLIB extension not loaded");}
--FILE--
<?php
$handle = gzopen(__DIR__ . '/gzgetss.gz', 'r');
while (!gzeof($handle)) {
$buffer = gzgetss($handle, 100, "<h1>");
echo $buffer;

while (!gzeof($handle)){
$buffer = gzgetss($handle, 4096, "<h1>");
print($buffer);

}
gzclose($handle);
?>
--EXPECT--
<h1 class="title">Description</h1>
<h1 class="title">Description</h1>
0