1--TEST--
2Test function readgzfile() by substituting argument 2 with int values.
3--SKIPIF--
4<?php
5if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
6?>
7--FILE--
8<?php
9
10
11$filename = __DIR__."/004.txt.gz";
12
13
14$variation = array (
15    'int 0' => 0,
16    'int 1' => 1,
17    'int 12345' => 12345,
18    'int -12345' => -2345,
19    );
20
21
22foreach ( $variation as $var ) {
23  var_dump(readgzfile( $filename, $var  ) );
24}
25?>
26--EXPECT--
27When you're taught through feelings
28Destiny flying high above
29all I know is that you can realize it
30Destiny who cares
31as it turns around
32and I know that it descends down on me
33int(176)
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
40int(176)
41When you're taught through feelings
42Destiny flying high above
43all I know is that you can realize it
44Destiny who cares
45as it turns around
46and I know that it descends down on me
47int(176)
48When you're taught through feelings
49Destiny flying high above
50all I know is that you can realize it
51Destiny who cares
52as it turns around
53and I know that it descends down on me
54int(176)
55