18f9ec423SDave Kelsey--TEST--
204145dc2SVeres LajosTest function gzfile() by substituting argument 2 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
118f9ec423SDave Kelsey$filename = dirname(__FILE__)."/004.txt.gz";
128f9ec423SDave Kelsey
138f9ec423SDave Kelsey$variation = array(
148f9ec423SDave Kelsey  'lowercase true' => true,
158f9ec423SDave Kelsey  'lowercase false' =>false,
168f9ec423SDave Kelsey  'uppercase TRUE' =>TRUE,
178f9ec423SDave Kelsey  'uppercase FALSE' =>FALSE,
188f9ec423SDave Kelsey  );
198f9ec423SDave Kelsey
208f9ec423SDave Kelsey
218f9ec423SDave Kelseyforeach ( $variation as $var ) {
228f9ec423SDave Kelsey  var_dump(gzfile( $filename, $var  ) );
238f9ec423SDave Kelsey}
248f9ec423SDave Kelsey?>
258f9ec423SDave Kelsey===DONE===
268f9ec423SDave Kelsey--EXPECT--
278f9ec423SDave Kelseyarray(6) {
288f9ec423SDave Kelsey  [0]=>
298f9ec423SDave Kelsey  string(36) "When you're taught through feelings
308f9ec423SDave Kelsey"
318f9ec423SDave Kelsey  [1]=>
328f9ec423SDave Kelsey  string(26) "Destiny flying high above
338f9ec423SDave Kelsey"
348f9ec423SDave Kelsey  [2]=>
358f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
368f9ec423SDave Kelsey"
378f9ec423SDave Kelsey  [3]=>
388f9ec423SDave Kelsey  string(18) "Destiny who cares
398f9ec423SDave Kelsey"
408f9ec423SDave Kelsey  [4]=>
418f9ec423SDave Kelsey  string(19) "as it turns around
428f9ec423SDave Kelsey"
438f9ec423SDave Kelsey  [5]=>
448f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
458f9ec423SDave Kelsey"
468f9ec423SDave Kelsey}
478f9ec423SDave Kelseyarray(6) {
488f9ec423SDave Kelsey  [0]=>
498f9ec423SDave Kelsey  string(36) "When you're taught through feelings
508f9ec423SDave Kelsey"
518f9ec423SDave Kelsey  [1]=>
528f9ec423SDave Kelsey  string(26) "Destiny flying high above
538f9ec423SDave Kelsey"
548f9ec423SDave Kelsey  [2]=>
558f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
568f9ec423SDave Kelsey"
578f9ec423SDave Kelsey  [3]=>
588f9ec423SDave Kelsey  string(18) "Destiny who cares
598f9ec423SDave Kelsey"
608f9ec423SDave Kelsey  [4]=>
618f9ec423SDave Kelsey  string(19) "as it turns around
628f9ec423SDave Kelsey"
638f9ec423SDave Kelsey  [5]=>
648f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
658f9ec423SDave Kelsey"
668f9ec423SDave Kelsey}
678f9ec423SDave Kelseyarray(6) {
688f9ec423SDave Kelsey  [0]=>
698f9ec423SDave Kelsey  string(36) "When you're taught through feelings
708f9ec423SDave Kelsey"
718f9ec423SDave Kelsey  [1]=>
728f9ec423SDave Kelsey  string(26) "Destiny flying high above
738f9ec423SDave Kelsey"
748f9ec423SDave Kelsey  [2]=>
758f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
768f9ec423SDave Kelsey"
778f9ec423SDave Kelsey  [3]=>
788f9ec423SDave Kelsey  string(18) "Destiny who cares
798f9ec423SDave Kelsey"
808f9ec423SDave Kelsey  [4]=>
818f9ec423SDave Kelsey  string(19) "as it turns around
828f9ec423SDave Kelsey"
838f9ec423SDave Kelsey  [5]=>
848f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
858f9ec423SDave Kelsey"
868f9ec423SDave Kelsey}
878f9ec423SDave Kelseyarray(6) {
888f9ec423SDave Kelsey  [0]=>
898f9ec423SDave Kelsey  string(36) "When you're taught through feelings
908f9ec423SDave Kelsey"
918f9ec423SDave Kelsey  [1]=>
928f9ec423SDave Kelsey  string(26) "Destiny flying high above
938f9ec423SDave Kelsey"
948f9ec423SDave Kelsey  [2]=>
958f9ec423SDave Kelsey  string(38) "all I know is that you can realize it
968f9ec423SDave Kelsey"
978f9ec423SDave Kelsey  [3]=>
988f9ec423SDave Kelsey  string(18) "Destiny who cares
998f9ec423SDave Kelsey"
1008f9ec423SDave Kelsey  [4]=>
1018f9ec423SDave Kelsey  string(19) "as it turns around
1028f9ec423SDave Kelsey"
1038f9ec423SDave Kelsey  [5]=>
1048f9ec423SDave Kelsey  string(39) "and I know that it descends down on me
1058f9ec423SDave Kelsey"
1068f9ec423SDave Kelsey}
107b746e698SPeter Kokot===DONE===
108