diff options
author | Stefan Roehrich <sr@php.net> | 1999-09-22 07:43:36 +0000 |
---|---|---|
committer | Stefan Roehrich <sr@php.net> | 1999-09-22 07:43:36 +0000 |
commit | 0b1226219c4427d1850236504ab20a083579bad2 (patch) | |
tree | 02ce090c000bd9a83a522ec0ccb05ec02039103b /ext/zlib | |
parent | cc31ea96a5026ec5eaf804ec77b4b440ae4baa02 (diff) | |
download | php-git-0b1226219c4427d1850236504ab20a083579bad2.tar.gz |
Fixed gzgetss() with new _php3_strip_tags, corrected prototype.
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); } |