xref: /php-src/ext/zlib/tests/gzopen_basic.phpt (revision 74859783)
1--TEST--
2Test gzopen() function : basic functionality
3--EXTENSIONS--
4zlib
5--FILE--
6<?php
7echo "*** Testing gzopen() : basic functionality ***\n";
8
9
10// Initialise all required variables
11$filename = __DIR__."/004.txt.gz";
12$mode = 'r';
13$use_include_path = false;
14
15// Calling gzopen() with all possible arguments
16$h = gzopen($filename, $mode, $use_include_path);
17gzpassthru($h);
18gzclose($h);
19
20// Calling gzopen() with mandatory arguments
21$h = gzopen($filename, $mode);
22gzpassthru($h);
23gzclose($h);
24
25?>
26--EXPECT--
27*** Testing gzopen() : basic functionality ***
28When you're taught through feelings
29Destiny flying high above
30all I know is that you can realize it
31Destiny who cares
32as it turns around
33and I know that it descends down on me
34When you're taught through feelings
35Destiny flying high above
36all I know is that you can realize it
37Destiny who cares
38as it turns around
39and I know that it descends down on me
40