Lines Matching refs:bzs
502 bz_stream bzs; in PHP_FUNCTION() local
508 bzs.bzalloc = NULL; in PHP_FUNCTION()
509 bzs.bzfree = NULL; in PHP_FUNCTION()
511 if (BZ2_bzDecompressInit(&bzs, 0, (int)small) != BZ_OK) { in PHP_FUNCTION()
516 bzs.next_in = source; in PHP_FUNCTION()
517 bzs.avail_in = source_len; in PHP_FUNCTION()
521 bzs.avail_out = source_len * 2; in PHP_FUNCTION()
522 bzs.next_out = ZSTR_VAL(dest); in PHP_FUNCTION()
524 while ((error = BZ2_bzDecompress(&bzs)) == BZ_OK && bzs.avail_in > 0) { in PHP_FUNCTION()
526 bzs.avail_out = source_len; in PHP_FUNCTION()
527 size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; in PHP_FUNCTION()
534 dest = zend_string_safe_realloc(dest, 1, bzs.avail_out+1, (size_t) size, 0); in PHP_FUNCTION()
535 bzs.next_out = ZSTR_VAL(dest) + size; in PHP_FUNCTION()
539 size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; in PHP_FUNCTION()
558 BZ2_bzDecompressEnd(&bzs); in PHP_FUNCTION()