diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2000-06-16 18:24:02 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2000-06-16 18:24:02 +0000 |
commit | 87a491d7b64f34a9692af3edc58151e9baa2e275 (patch) | |
tree | 023b2ac85e2f4ae8951fefe14ccc9c835cfe465a /ext/zlib/zlib.c | |
parent | c6ddfd4440ad412059e49dc69f9c7e98de57d65c (diff) | |
download | php-git-87a491d7b64f34a9692af3edc58151e9baa2e275.tar.gz |
C++ // comments are evil ...
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r-- | ext/zlib/zlib.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 7f4b1060f1..b991f35e3d 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -822,12 +822,14 @@ PHP_FUNCTION(gzuncompress) WRONG_PARAM_COUNT; } convert_to_string_ex(data); - - // zlib::uncompress() wants to know the output data length - // if none was given as a parameter - // we try from input length * 2 up to input length * 2^8 - // doubling it whenever it wasn't big enough - // that should be eneugh for all real life cases + + /* + zlib::uncompress() wants to know the output data length + if none was given as a parameter + we try from input length * 2 up to input length * 2^8 + doubling it whenever it wasn't big enough + that should be eneugh for all real life cases + */ do { length=plength?plength:(*data)->value.str.len*(1<<factor++); s2 = (char *) erealloc(s1,length); |