Lines Matching refs:bzs
505 bz_stream bzs; in PHP_FUNCTION() local
511 bzs.bzalloc = NULL; in PHP_FUNCTION()
512 bzs.bzfree = NULL; in PHP_FUNCTION()
514 if (BZ2_bzDecompressInit(&bzs, 0, (int)small) != BZ_OK) { in PHP_FUNCTION()
518 bzs.next_in = source; in PHP_FUNCTION()
519 bzs.avail_in = source_len; in PHP_FUNCTION()
523 bzs.avail_out = source_len * 2; in PHP_FUNCTION()
524 bzs.next_out = ZSTR_VAL(dest); in PHP_FUNCTION()
526 while ((error = BZ2_bzDecompress(&bzs)) == BZ_OK && bzs.avail_in > 0) { in PHP_FUNCTION()
528 bzs.avail_out = source_len; in PHP_FUNCTION()
529 size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; in PHP_FUNCTION()
536 dest = zend_string_safe_realloc(dest, 1, bzs.avail_out+1, (size_t) size, 0); in PHP_FUNCTION()
537 bzs.next_out = ZSTR_VAL(dest) + size; in PHP_FUNCTION()
541 size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; in PHP_FUNCTION()
560 BZ2_bzDecompressEnd(&bzs); in PHP_FUNCTION()