Annotation of embedaddon/php/ext/zlib/tests/readgzfile_variation9.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function readgzfile() by substituting agument 2 with boolean values.
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
6: ?>
7: --FILE--
8: <?php
9:
10:
11: $filename = dirname(__FILE__)."/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:
21: foreach ( $variation as $var ) {
22: var_dump(readgzfile( $filename, $var ) );
23: }
24: ?>
25: ===DONE===
26: --EXPECT--
27: When you're taught through feelings
28: Destiny flying high above
29: all I know is that you can realize it
30: Destiny who cares
31: as it turns around
32: and I know that it descends down on me
33: int(176)
34: When you're taught through feelings
35: Destiny flying high above
36: all I know is that you can realize it
37: Destiny who cares
38: as it turns around
39: and I know that it descends down on me
40: int(176)
41: When you're taught through feelings
42: Destiny flying high above
43: all I know is that you can realize it
44: Destiny who cares
45: as it turns around
46: and I know that it descends down on me
47: int(176)
48: When you're taught through feelings
49: Destiny flying high above
50: all I know is that you can realize it
51: Destiny who cares
52: as it turns around
53: and I know that it descends down on me
54: int(176)
55: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>