1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00

- restore correct window_size

This commit is contained in:
Pierre Joye
2011-11-20 10:10:43 +00:00
parent eeba0b5681
commit f330c8ab4e

View File

@@ -1570,7 +1570,7 @@ static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *a
const char gz_magic[] = "\x1f\x8b\x08";
const char bz_magic[] = "BZh";
char *pos, test = '\0';
const int window_size = 1024 + sizeof(token);
const int window_size = 1024;
char buffer[1024 + sizeof(token)]; /* a 1024 byte window + the size of the halt_compiler token (moving window) */
const long readsize = sizeof(buffer) - sizeof(token);
const long tokenlen = sizeof(token) - 1;