From 0b1226219c4427d1850236504ab20a083579bad2 Mon Sep 17 00:00:00 2001 From: Stefan Roehrich Date: Wed, 22 Sep 1999 07:43:36 +0000 Subject: [PATCH] Fixed gzgetss() with new _php3_strip_tags, corrected prototype. --- ext/zlib/zlib.c | 4 ++-- 1 file 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); } -- 2.40.0