Lines Matching refs:ZLIBG

351 	ZLIBG(ob_gzhandler_status) = 0;  in PHP_RINIT_FUNCTION()
352 ZLIBG(compression_coding) = 0; in PHP_RINIT_FUNCTION()
725 switch (ZLIBG(compression_coding)) { in PHP_FUNCTION()
743 int start_offset = ((do_start && ZLIBG(compression_coding) == CODING_GZIP) ? 10 : 0); in php_do_deflate()
753 ZLIBG(stream).next_out = buffer + start_offset; in php_do_deflate()
754 ZLIBG(stream).avail_out = outlen; in php_do_deflate()
756 err = deflate(&ZLIBG(stream), Z_SYNC_FLUSH); in php_do_deflate()
757 while (err == Z_OK && !ZLIBG(stream).avail_out) { in php_do_deflate()
764 ZLIBG(stream).next_out = buffer + start_offset + prev_outlen; in php_do_deflate()
765 ZLIBG(stream).avail_out = prev_outlen * 2; in php_do_deflate()
767 err = deflate(&ZLIBG(stream), Z_SYNC_FLUSH); in php_do_deflate()
771 err = deflate(&ZLIBG(stream), Z_FINISH); in php_do_deflate()
772 buffer[outlen + start_offset - ZLIBG(stream).avail_out] = '\0'; in php_do_deflate()
776 *p_buffer_len = outlen - ZLIBG(stream).avail_out; in php_do_deflate()
789 ZLIBG(stream).zalloc = php_zlib_alloc; in php_deflate_string()
790 ZLIBG(stream).zfree = php_zlib_free; in php_deflate_string()
791 ZLIBG(stream).opaque = Z_NULL; in php_deflate_string()
793 switch (ZLIBG(compression_coding)) { in php_deflate_string()
796 …if (deflateInit2(&ZLIBG(stream), ZLIBG(output_compression_level), Z_DEFLATED, -MAX_WBITS, MAX_MEM_… in php_deflate_string()
801 ZLIBG(crc) = crc32(0L, Z_NULL, 0); in php_deflate_string()
805 if (deflateInit(&ZLIBG(stream), ZLIBG(output_compression_level)) != Z_OK) { in php_deflate_string()
813 ZLIBG(stream).next_in = (Bytef *) str; in php_deflate_string()
814 ZLIBG(stream).avail_in = (uInt) str_length; in php_deflate_string()
816 if (ZLIBG(compression_coding) == CODING_GZIP) { in php_deflate_string()
817 ZLIBG(crc) = crc32(ZLIBG(crc), (const Bytef *) str, str_length); in php_deflate_string()
823 if (do_start && ZLIBG(compression_coding) == CODING_GZIP) { in php_deflate_string()
833 if (ZLIBG(compression_coding) == CODING_GZIP) { in php_deflate_string()
837 trailer[0] = (char) ZLIBG(crc) & 0xFF; in php_deflate_string()
838 trailer[1] = (char) (ZLIBG(crc) >> 8) & 0xFF; in php_deflate_string()
839 trailer[2] = (char) (ZLIBG(crc) >> 16) & 0xFF; in php_deflate_string()
840 trailer[3] = (char) (ZLIBG(crc) >> 24) & 0xFF; in php_deflate_string()
841 trailer[4] = (char) ZLIBG(stream).total_in & 0xFF; in php_deflate_string()
842 trailer[5] = (char) (ZLIBG(stream).total_in >> 8) & 0xFF; in php_deflate_string()
843 trailer[6] = (char) (ZLIBG(stream).total_in >> 16) & 0xFF; in php_deflate_string()
844 trailer[7] = (char) (ZLIBG(stream).total_in >> 24) & 0xFF; in php_deflate_string()
848 deflateEnd(&ZLIBG(stream)); in php_deflate_string()
1000 if (ZLIBG(ob_gzhandler_status) == -1) { in PHP_FUNCTION()
1009 ZLIBG(ob_gzhandler_status) = -1; in PHP_FUNCTION()
1015 ZLIBG(compression_coding) = CODING_GZIP; in PHP_FUNCTION()
1017 ZLIBG(compression_coding) = CODING_DEFLATE; in PHP_FUNCTION()
1019 ZLIBG(ob_gzhandler_status) = -1; in PHP_FUNCTION()
1031 switch (ZLIBG(compression_coding)) { in PHP_FUNCTION()
1075 …if (!ZLIBG(output_compression) || SG(sapi_headers).http_response_code == 204 || SG(sapi_headers).h… in php_gzip_output_handler()
1083 switch (ZLIBG(compression_coding)) { in php_gzip_output_handler()
1094 ZLIBG(output_compression) = 0; in php_gzip_output_handler()
1124 ZLIBG(compression_coding) = CODING_GZIP; in php_enable_output_compression()
1126 ZLIBG(compression_coding) = CODING_DEFLATE; in php_enable_output_compression()
1133 if (ZLIBG(output_handler) && strlen(ZLIBG(output_handler))) { in php_enable_output_compression()
1134 php_start_ob_buffer_named(ZLIBG(output_handler), 0, 1 TSRMLS_CC); in php_enable_output_compression()
1143 switch (ZLIBG(output_compression)) { in php_zlib_output_compression_start()
1147 ZLIBG(output_compression) = 4096; in php_zlib_output_compression_start()
1151 if (ZLIBG(compression_coding) == 0) { in php_zlib_output_compression_start()
1152 return php_enable_output_compression(ZLIBG(output_compression) TSRMLS_CC); in php_zlib_output_compression_start()