cvs: /php4/ext/zlib zlib.c

From: Date: Wed, 22 Sep 1999 07:43:36 +0000
Subject: cvs: /php4/ext/zlib zlib.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-4792@lists.php.net to get a copy of this message
sr Wed Sep 22 03:43:36 1999 EDT Modified files: /php4/ext/zlib zlib.c Log: Fixed gzgetss() with new _php3_strip_tags, corrected prototype. Index: php4/ext/zlib/zlib.c diff -u php4/ext/zlib/zlib.c:1.19 php4/ext/zlib/zlib.c:1.20 --- php4/ext/zlib/zlib.c:1.19 Tue Sep 21 13:50:51 1999 +++ php4/ext/zlib/zlib.c Wed Sep 22 03:43:36 1999 @@ -16,7 +16,7 @@ | Stefan Röhrich <sr@linux.de> | +----------------------------------------------------------------------+ */ -/* $Id: zlib.c,v 1.19 1999/09/21 17:50:51 rasmus Exp $ */ +/* $Id: zlib.c,v 1.20 1999/09/22 07:43:36 sr Exp $ */ #define IS_EXT_MODULE #include "php.h" @@ -476,7 +476,7 @@ /* }}} */ /* 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 @@ } /* 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); }

« previous php.version4 (#4792) next »