From eee95ef3f0d560d0272210fc06fbbd900756888a Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 6 Sep 2006 15:19:41 +0000 Subject: MFH zend_parse_parameters() fixes --- ext/zip/php_zip.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'ext/zip/php_zip.c') diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 2a5390982b..403416006a 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -1230,7 +1230,7 @@ ZIPARCHIVE_METHOD(setArchiveComment) { struct zip *intern; zval *this = getThis(); - long comment_len = 0; + int comment_len; char * comment; if (!this) { @@ -1283,7 +1283,7 @@ ZIPARCHIVE_METHOD(setCommentName) { struct zip *intern; zval *this = getThis(); - long comment_len = 0, name_len = 0; + int comment_len, name_len; char * comment, *name; struct zip_stat sb; @@ -1311,7 +1311,8 @@ ZIPARCHIVE_METHOD(setCommentIndex) { struct zip *intern; zval *this = getThis(); - long index, comment_len = 0; + long index; + int comment_len; char * comment; struct zip_stat sb; @@ -1338,7 +1339,8 @@ ZIPARCHIVE_METHOD(getCommentName) { struct zip *intern; zval *this = getThis(); - long name_len = 0, flags = 0; + int name_len; + long flags = 0; int comment_len = 0; const char * comment; char *name; @@ -1428,8 +1430,8 @@ ZIPARCHIVE_METHOD(deleteName) { struct zip *intern; zval *this = getThis(); - long name_len = 0; - char *name; + int name_len; + char *name; struct zip_stat sb; if (!this) { -- cgit v1.2.1