Annotation of embedaddon/php/ext/zlib/tests/gzpassthru_basic.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test function gzpassthru() by calling it with its expected arguments
        !             3: --SKIPIF--
        !             4: <?php 
        !             5: if (!extension_loaded("zlib")) {
        !             6:        print "skip - ZLIB extension not loaded"; 
        !             7: }
        !             8: ?>
        !             9: --FILE--
        !            10: <?php
        !            11: 
        !            12: // note that gzpassthru is an alias to fpassthru. parameter checking tests will be
        !            13: // the same as fpassthru
        !            14: 
        !            15: $f = dirname(__FILE__)."/004.txt.gz";
        !            16: $h = gzopen($f, 'r');
        !            17: var_dump(gzpassthru($h));
        !            18: var_dump(gzpassthru($h));
        !            19: gzclose($h);
        !            20: 
        !            21: ?>
        !            22: ===DONE===
        !            23: --EXPECTF--
        !            24: When you're taught through feelings
        !            25: Destiny flying high above
        !            26: all I know is that you can realize it
        !            27: Destiny who cares
        !            28: as it turns around
        !            29: and I know that it descends down on me
        !            30: int(176)
        !            31: int(0)
        !            32: ===DONE===

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