1--TEST--
2Test function readgzfile() by substituting argument 1 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$use_include_path =
12
13
14$variation = array(
15  'lowercase true' => true,
16  'lowercase false' =>false,
17  'uppercase TRUE' =>TRUE,
18  'uppercase FALSE' =>FALSE,
19  );
20
21
22foreach ( $variation as $var ) {
23  var_dump(readgzfile( $var ,  $use_include_path ) );
24}
25?>
26===DONE===
27--EXPECTF--
28
29Warning: readgzfile() expects parameter 2 to be integer, array given in %s on line %d
30NULL
31
32Warning: readgzfile() expects parameter 2 to be integer, array given in %s on line %d
33NULL
34
35Warning: readgzfile() expects parameter 2 to be integer, array given in %s on line %d
36NULL
37
38Warning: readgzfile() expects parameter 2 to be integer, array given in %s on line %d
39NULL
40===DONE===