cvs: pecl /zip php_zip.c

From: Date: Sun, 22 Oct 2006 00:54:05 +0000
Subject: cvs: pecl /zip php_zip.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-6532@lists.php.net to get a copy of this message
pajoye Sun Oct 22 00:54:05 2006 UTC Modified files: /pecl/zip php_zip.c Log: - sync with php-src - initialize comment_len - do not init name_len in comment function - silent compile warning http://cvs.php.net/viewvc.cgi/pecl/zip/php_zip.c?r1=1.81&r2=1.82&diff_format=u Index: pecl/zip/php_zip.c diff -u pecl/zip/php_zip.c:1.81 pecl/zip/php_zip.c:1.82 --- pecl/zip/php_zip.c:1.81 Fri Oct 20 14:25:49 2006 +++ pecl/zip/php_zip.c Sun Oct 22 00:54:05 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_zip.c,v 1.81 2006/10/20 14:25:49 pajoye Exp $ */ +/* $Id: php_zip.c,v 1.82 2006/10/22 00:54:05 pajoye Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1268,7 +1268,7 @@ zval *this = getThis(); long flags = 0; const char * comment; - int comment_len; + int comment_len = 0; if (!this) { RETURN_FALSE; @@ -1281,7 +1281,7 @@ } comment = zip_get_archive_comment(intern, &comment_len, (int)flags); - RETURN_STRINGL((char *)comment, comment_len, 1); + RETURN_STRINGL((char *)comment, (long)comment_len, 1); } /* }}} */ @@ -1345,7 +1345,8 @@ { struct zip *intern; zval *this = getThis(); - int name_len = 0, comment_len; + int name_len; + int comment_len = 0; long flags = 0; const char * comment; char *name; @@ -1364,7 +1365,7 @@ PHP_ZIP_STAT_PATH(intern, name, name_len, 0, sb); comment = zip_get_file_comment(intern, sb.index, &comment_len, (int)flags); - RETURN_STRINGL((char *)comment, comment_len, 1); + RETURN_STRINGL((char *)comment, (long)comment_len, 1); } /* }}} */ @@ -1376,7 +1377,7 @@ zval *this = getThis(); long index, flags = 0; const char * comment; - int comment_len; + int comment_len = 0; struct zip_stat sb; if (!this) { @@ -1392,7 +1393,7 @@ PHP_ZIP_STAT_INDEX(intern, index, 0, sb); comment = zip_get_file_comment(intern, index, &comment_len, (int)flags); - RETURN_STRINGL((char *)comment, comment_len, 1); + RETURN_STRINGL((char *)comment, (long)comment_len, 1); } /* }}} */ @@ -1432,7 +1433,7 @@ { struct zip *intern; zval *this = getThis(); - int name_len = 0; + int name_len; char *name; struct zip_stat sb; @@ -1979,7 +1980,7 @@ php_info_print_table_start(); php_info_print_table_row(2, "Zip", "enabled"); - php_info_print_table_row(2, "Extension Version","$Id: php_zip.c,v 1.81 2006/10/20 14:25:49 pajoye Exp $"); + php_info_print_table_row(2, "Extension Version","$Id: php_zip.c,v 1.82 2006/10/22 00:54:05 pajoye Exp $"); php_info_print_table_row(2, "Zip version", "@PACKAGE_VERSION@"); php_info_print_table_row(2, "Libzip version", "0.7.1");

« previous php.pecl.cvs (#6532) next »