1--TEST-- 2Test function gzfile() by substituting argument 2 with boolean values. 3--EXTENSIONS-- 4zlib 5--FILE-- 6<?php 7 8 9$filename = __DIR__."/004.txt.gz"; 10 11$variation = array( 12 'lowercase true' => true, 13 'lowercase false' =>false, 14 'uppercase TRUE' =>TRUE, 15 'uppercase FALSE' =>FALSE, 16 ); 17 18 19foreach ( $variation as $var ) { 20 var_dump(gzfile( $filename, $var ) ); 21} 22?> 23--EXPECT-- 24array(6) { 25 [0]=> 26 string(36) "When you're taught through feelings 27" 28 [1]=> 29 string(26) "Destiny flying high above 30" 31 [2]=> 32 string(38) "all I know is that you can realize it 33" 34 [3]=> 35 string(18) "Destiny who cares 36" 37 [4]=> 38 string(19) "as it turns around 39" 40 [5]=> 41 string(39) "and I know that it descends down on me 42" 43} 44array(6) { 45 [0]=> 46 string(36) "When you're taught through feelings 47" 48 [1]=> 49 string(26) "Destiny flying high above 50" 51 [2]=> 52 string(38) "all I know is that you can realize it 53" 54 [3]=> 55 string(18) "Destiny who cares 56" 57 [4]=> 58 string(19) "as it turns around 59" 60 [5]=> 61 string(39) "and I know that it descends down on me 62" 63} 64array(6) { 65 [0]=> 66 string(36) "When you're taught through feelings 67" 68 [1]=> 69 string(26) "Destiny flying high above 70" 71 [2]=> 72 string(38) "all I know is that you can realize it 73" 74 [3]=> 75 string(18) "Destiny who cares 76" 77 [4]=> 78 string(19) "as it turns around 79" 80 [5]=> 81 string(39) "and I know that it descends down on me 82" 83} 84array(6) { 85 [0]=> 86 string(36) "When you're taught through feelings 87" 88 [1]=> 89 string(26) "Destiny flying high above 90" 91 [2]=> 92 string(38) "all I know is that you can realize it 93" 94 [3]=> 95 string(18) "Destiny who cares 96" 97 [4]=> 98 string(19) "as it turns around 99" 100 [5]=> 101 string(39) "and I know that it descends down on me 102" 103} 104