Annotation of embedaddon/php/ext/bz2/tests/with_files.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: BZ2 with files
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("bz2")) print "skip"; ?>
! 5: --FILE--
! 6: <?php // $Id: with_files.phpt 242949 2007-09-26 15:44:16Z cvs2svn $
! 7:
! 8: error_reporting(E_ALL);
! 9:
! 10: $filename = "testfile.bz2";
! 11: $str = "This is a test string.\n";
! 12: $bz = bzopen($filename, "w");
! 13: bzwrite($bz, $str);
! 14: bzclose($bz);
! 15:
! 16: $bz = bzopen($filename, "r");
! 17: print bzread($bz, 10);
! 18: print bzread($bz);
! 19: bzclose($bz);
! 20: unlink($filename);
! 21:
! 22: --EXPECT--
! 23: This is a test string.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>