1--TEST-- 2bzip2.compress (with convert.base64-encode) 3--SKIPIF-- 4<?php if (!extension_loaded("bz2")) print "skip"; ?> 5--FILE-- 6<?php 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'); 10stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE); 11stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE); 12fwrite($fp, $text); 13fclose($fp); 14 15?> 16--EXPECT-- 17QlpoNDFBWSZTWRN6QG0AAAoVgECFACA395UgIABIintI1N6mpowIQ0E1MTTAQGYTNcRyMZm5kgW3ib7hVboE7Tmqj3ToGZ5G3q1ZauD2G58hibSck8KS95EEAbx1Cn+LuSKcKEgJvSA2gA== 18