Lines Matching refs:bzs
553 bz_stream bzs; in PHP_FUNCTION() local
559 bzs.bzalloc = NULL; in PHP_FUNCTION()
560 bzs.bzfree = NULL; in PHP_FUNCTION()
562 if (BZ2_bzDecompressInit(&bzs, 0, small) != BZ_OK) { in PHP_FUNCTION()
566 bzs.next_in = source; in PHP_FUNCTION()
567 bzs.avail_in = source_len; in PHP_FUNCTION()
570 bzs.avail_out = source_len * 2; in PHP_FUNCTION()
571 bzs.next_out = dest = emalloc(bzs.avail_out + 1); in PHP_FUNCTION()
573 while ((error = BZ2_bzDecompress(&bzs)) == BZ_OK && bzs.avail_in > 0) { in PHP_FUNCTION()
575 bzs.avail_out = source_len; in PHP_FUNCTION()
576 size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; in PHP_FUNCTION()
581 dest = safe_erealloc(dest, 1, bzs.avail_out+1, (size_t) size ); in PHP_FUNCTION()
582 bzs.next_out = dest + size; in PHP_FUNCTION()
586 size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; in PHP_FUNCTION()
601 BZ2_bzDecompressEnd(&bzs); in PHP_FUNCTION()