summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2006-09-06 15:19:41 +0000
committerNuno Lopes <nlopess@php.net>2006-09-06 15:19:41 +0000
commiteee95ef3f0d560d0272210fc06fbbd900756888a (patch)
tree83792580fccad8959ee1116f03232411a5176cfc /ext/zip/php_zip.c
parentad58ad265b42723b032e63d392b557544a4b0d45 (diff)
downloadphp-git-eee95ef3f0d560d0272210fc06fbbd900756888a.tar.gz
MFH zend_parse_parameters() fixes
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c14
1 files changed, 8 insertions, 6 deletions
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) {