Annotation of embedaddon/php/ext/bz2/tests/bz2_filter_compress.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: bzip2.compress (with convert.base64-encode)
3: --SKIPIF--
4: <?php if (!extension_loaded("bz2")) print "skip"; ?>
5: --FILE--
6: <?php /* $Id: bz2_filter_compress.phpt 242949 2007-09-26 15:44:16Z cvs2svn $ */
7: $text = 'I am the very model of a modern major general, I\'ve information vegetable, animal, and mineral.';
8:
9: $fp = fopen('php://stdout', 'w');
10: stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE);
11: stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE);
12: fwrite($fp, $text);
13: fclose($fp);
14:
15: ?>
16: --EXPECT--
17: QlpoNDFBWSZTWRN6QG0AAAoVgECFACA395UgIABIintI1N6mpowIQ0E1MTTAQGYTNcRyMZm5kgW3ib7hVboE7Tmqj3ToGZ5G3q1ZauD2G58hibSck8KS95EEAbx1Cn+LuSKcKEgJvSA2gA==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>