xref: /PHP-7.3/ext/zlib/tests/gzgetss.phpt (revision f1d7e3ca)
1--TEST--
2gzgetss — Get line from gz-file pointer and strip HTML tags - function
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br>
5--SKIPIF--
6<?php
7if(!extension_loaded("zlib")){die("skip - ZLIB extension not loaded");}
8?>
9--FILE--
10<?php
11$handle = gzopen(__DIR__ . '/gzgetss.gz', 'r');
12
13while (!gzeof($handle)){
14   $buffer = gzgetss($handle, 4096, "<code>");
15   print($buffer);
16}
17gzclose($handle);
18?>
19--EXPECTF--
20Deprecated: Function gzgetss() is deprecated in %s on line %d
21
22
23Deprecated: Function gzgetss() is deprecated in %s on line %d
24
25
26Deprecated: Function gzgetss() is deprecated in %s on line %d
27      <code>stringgzgetss(resource $zp, int $length [, string $allowable_tags ]);<code/>
28
29Deprecated: Function gzgetss() is deprecated in %s on line %d
30
31
32Deprecated: Function gzgetss() is deprecated in %s on line %d
33