]> granicus.if.org Git - php/commitdiff
Fixed gzgetss() with new _php3_strip_tags, corrected prototype.
authorStefan Roehrich <sr@php.net>
Wed, 22 Sep 1999 07:43:36 +0000 (07:43 +0000)
committerStefan Roehrich <sr@php.net>
Wed, 22 Sep 1999 07:43:36 +0000 (07:43 +0000)
ext/zlib/zlib.c

index b4717e40ffd48504785d4cd89c52e86c6a65ede9..930d37e95c0a26e48961f0015230a8839e15d2f2 100644 (file)
@@ -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);
        
 }