From: Stefan Roehrich Date: Wed, 22 Sep 1999 07:43:36 +0000 (+0000) Subject: Fixed gzgetss() with new _php3_strip_tags, corrected prototype. X-Git-Tag: before-sapi-split~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b1226219c4427d1850236504ab20a083579bad2;p=php Fixed gzgetss() with new _php3_strip_tags, corrected prototype. --- 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); }