1--TEST--
2Test function readgzfile() by substituting argument 2 with boolean 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$variation = array(
14  'lowercase true' => true,
15  'lowercase false' =>false,
16  'uppercase TRUE' =>TRUE,
17  'uppercase FALSE' =>FALSE,
18  );
19
20
21foreach ( $variation as $var ) {
22  var_dump(readgzfile( $filename, $var  ) );
23}
24?>
25--EXPECT--
26When you're taught through feelings
27Destiny flying high above
28all I know is that you can realize it
29Destiny who cares
30as it turns around
31and I know that it descends down on me
32int(176)
33When you're taught through feelings
34Destiny flying high above
35all I know is that you can realize it
36Destiny who cares
37as it turns around
38and I know that it descends down on me
39int(176)
40When you're taught through feelings
41Destiny flying high above
42all I know is that you can realize it
43Destiny who cares
44as it turns around
45and I know that it descends down on me
46int(176)
47When you're taught through feelings
48Destiny flying high above
49all I know is that you can realize it
50Destiny who cares
51as it turns around
52and I know that it descends down on me
53int(176)
54