Annotation of embedaddon/php/ext/zlib/tests/readgzfile_variation11.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function readgzfile() by substituting agument 2 with float 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:
14: $variation = array(
15: 'float 10.5' => 10.5,
16: 'float -10.5' => -10.5,
17: 'float 12.3456789000e10' => 12.3456789000e10,
18: 'float -12.3456789000e10' => -12.3456789000e10,
19: 'float .5' => .5,
20: );
21:
22:
23: foreach ( $variation as $var ) {
24: var_dump(readgzfile( $filename, $var ) );
25: }
26: ?>
27: ===DONE===
28: --EXPECT--
29: When you're taught through feelings
30: Destiny flying high above
31: all I know is that you can realize it
32: Destiny who cares
33: as it turns around
34: and I know that it descends down on me
35: int(176)
36: When you're taught through feelings
37: Destiny flying high above
38: all I know is that you can realize it
39: Destiny who cares
40: as it turns around
41: and I know that it descends down on me
42: int(176)
43: When you're taught through feelings
44: Destiny flying high above
45: all I know is that you can realize it
46: Destiny who cares
47: as it turns around
48: and I know that it descends down on me
49: int(176)
50: When you're taught through feelings
51: Destiny flying high above
52: all I know is that you can realize it
53: Destiny who cares
54: as it turns around
55: and I know that it descends down on me
56: int(176)
57: When you're taught through feelings
58: Destiny flying high above
59: all I know is that you can realize it
60: Destiny who cares
61: as it turns around
62: and I know that it descends down on me
63: int(176)
64: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>