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

1.1       misho       1: --TEST--
                      2: Test function readgzfile() by substituting agument 1 with int 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:     'int 0' => 0,
                     16:     'int 1' => 1,
                     17:     'int 12345' => 12345,
                     18:     'int -12345' => -2345,
                     19:     );
                     20: 
                     21: 
                     22: foreach ( $variation as $var ) {
                     23:   var_dump(readgzfile( $var ,  $use_include_path ) );
                     24: }
                     25: ?>
                     26: ===DONE===
                     27: --EXPECTF--
1.1.1.2 ! misho      28: Warning: readgzfile(0): failed to open stream: No such file or directory in %s on line %d
1.1       misho      29: bool(false)
1.1.1.2 ! misho      30: 
        !            31: Warning: readgzfile(1): failed to open stream: No such file or directory in %s on line %d
1.1       misho      32: bool(false)
1.1.1.2 ! misho      33: 
        !            34: Warning: readgzfile(12345): failed to open stream: No such file or directory in %s on line %d
1.1       misho      35: bool(false)
1.1.1.2 ! misho      36: 
        !            37: Warning: readgzfile(-2345): failed to open stream: No such file or directory in %s on line %d
1.1       misho      38: bool(false)
1.1.1.2 ! misho      39: ===DONE===

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