Annotation of embedaddon/php/ext/zlib/tests/readgzfile_variation4.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Test function readgzfile() by substituting agument 1 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: $use_include_path = false;
                     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( $var ,  $use_include_path ) );
                     25: }
                     26: ?>
                     27: ===DONE===
                     28: --EXPECTF--
1.1.1.2 ! misho      29: Warning: readgzfile(10.5): failed to open stream: No such file or directory in %s on line %d
1.1       misho      30: bool(false)
1.1.1.2 ! misho      31: 
        !            32: Warning: readgzfile(-10.5): failed to open stream: No such file or directory in %s on line %d
1.1       misho      33: bool(false)
1.1.1.2 ! misho      34: 
        !            35: Warning: readgzfile(123456789000): failed to open stream: No such file or directory in %s on line %d
1.1       misho      36: bool(false)
1.1.1.2 ! misho      37: 
        !            38: Warning: readgzfile(-123456789000): failed to open stream: No such file or directory in %s on line %d
1.1       misho      39: bool(false)
1.1.1.2 ! misho      40: 
        !            41: Warning: readgzfile(0.5): failed to open stream: No such file or directory in %s on line %d
1.1       misho      42: bool(false)
                     43: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>