diff options
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index b4717e40ff..930d37e95c 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -476,7 +476,7 @@ PHP_FUNCTION(gzgetc) { /* }}} */ /* Strip any HTML tags while reading */ -/* {{{ proto string gzgetss(int zp, int length) +/* {{{ proto string gzgetss(int zp, int length [, string allowable_tags]) Get a line from file pointer and strip HTML tags */ PHP_FUNCTION(gzgetss) { @@ -519,7 +519,7 @@ PHP_FUNCTION(gzgetss) } /* strlen() can be used here since we are doing it on the return of an fgets() anyway */ - _php3_strip_tags(buf, strlen, ZLIBG(gzgetss_state), allow?allow->value.str.val:NULL); + _php3_strip_tags(buf, strlen(buf), ZLIBG(gzgetss_state), allow?allow->value.str.val:NULL); RETURN_STRING(buf, 0); } |