예제 #1
0
파일: ext_bzip2.php 프로젝트: badlamer/hhvm
function test_bzwrite()
{
    global $tmpfile;
    $str = "HipHop for";
    $bz = bzopen($tmpfile, "w");
    VERIFY($bz !== false);
    VS(bzwrite($bz, $str), 10);
    bzflush($bz);
    VERIFY(bzclose($bz));
    $bz = bzopen($tmpfile, "r");
    $ret = bzread($bz, 10000);
    VS($ret, $str);
    VERIFY(bzclose($bz));
    VS($ret, $str);
    unlink($tmpfile);
}
예제 #2
0
파일: Bzip2.php 프로젝트: robeendey/ce
 public function stream_flush()
 {
     return bzflush($this->_resource);
 }
예제 #3
0
 function flush()
 {
     return bzflush($this->stream->getPointer());
 }