Esempio n. 1
0
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);
}
Esempio n. 2
0
 public function stream_flush()
 {
     return bzflush($this->_resource);
 }
Esempio n. 3
0
 function flush()
 {
     return bzflush($this->stream->getPointer());
 }