18f9ec423SDave Kelsey--TEST--
204145dc2SVeres LajosTest function readgzfile() by substituting argument 1 with boolean values.
38f9ec423SDave Kelsey--SKIPIF--
48f9ec423SDave Kelsey<?php
58f9ec423SDave Kelseyif (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
68f9ec423SDave Kelsey?>
78f9ec423SDave Kelsey--FILE--
88f9ec423SDave Kelsey<?php
98f9ec423SDave Kelsey
108f9ec423SDave Kelsey
11782352c5SPeter Kokot$use_include_path =
128f9ec423SDave Kelsey
138f9ec423SDave Kelsey
148f9ec423SDave Kelsey$variation = array(
158f9ec423SDave Kelsey  'lowercase true' => true,
168f9ec423SDave Kelsey  'lowercase false' =>false,
178f9ec423SDave Kelsey  'uppercase TRUE' =>TRUE,
188f9ec423SDave Kelsey  'uppercase FALSE' =>FALSE,
198f9ec423SDave Kelsey  );
208f9ec423SDave Kelsey
218f9ec423SDave Kelsey
228f9ec423SDave Kelseyforeach ( $variation as $var ) {
238f9ec423SDave Kelsey  var_dump(readgzfile( $var ,  $use_include_path ) );
248f9ec423SDave Kelsey}
258f9ec423SDave Kelsey?>
268f9ec423SDave Kelsey===DONE===
278f9ec423SDave Kelsey--EXPECTF--
28ce1d69a1SGabriel CarusoWarning: readgzfile() expects parameter 2 to be int, array given in %s on line %d
298f9ec423SDave KelseyNULL
308f9ec423SDave Kelsey
31ce1d69a1SGabriel CarusoWarning: readgzfile() expects parameter 2 to be int, array given in %s on line %d
328f9ec423SDave KelseyNULL
338f9ec423SDave Kelsey
34ce1d69a1SGabriel CarusoWarning: readgzfile() expects parameter 2 to be int, array given in %s on line %d
358f9ec423SDave KelseyNULL
368f9ec423SDave Kelsey
37ce1d69a1SGabriel CarusoWarning: readgzfile() expects parameter 2 to be int, array given in %s on line %d
388f9ec423SDave KelseyNULL
39b746e698SPeter Kokot===DONE===
40