pajoye          Wed Sep  6 17:24:41 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/zip    php_zip.c 
  Log:
  - wrong cast, strlen is int
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.10&r2=1.1.2.11&diff_format=u
Index: php-src/ext/zip/php_zip.c
diff -u php-src/ext/zip/php_zip.c:1.1.2.10 php-src/ext/zip/php_zip.c:1.1.2.11
--- php-src/ext/zip/php_zip.c:1.1.2.10  Wed Sep  6 15:19:41 2006
+++ php-src/ext/zip/php_zip.c   Wed Sep  6 17:24:41 2006
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: php_zip.c,v 1.1.2.10 2006/09/06 15:19:41 nlopess Exp $ */
+/* $Id: php_zip.c,v 1.1.2.11 2006/09/06 17:24:41 pajoye Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1273,7 +1273,7 @@
        }
 
        comment = zip_get_archive_comment(intern, &comment_len, (int)flags);
-       RETURN_STRINGL((char *)comment, (long)comment_len, 1);
+       RETURN_STRINGL((char *)comment, comment_len, 1);
 }
 /* }}} */
 
@@ -1360,7 +1360,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, (long)comment_len, 1);
+       RETURN_STRINGL((char *)comment, comment_len, 1);
 }
 /* }}} */
 
@@ -1389,7 +1389,7 @@
 
        PHP_ZIP_STAT_INDEX(intern, index, 0, sb);
        comment = zip_get_file_comment(intern, index, &comment_len, (int)flags);
-       RETURN_STRINGL((char *)comment, (long)comment_len, 1);
+       RETURN_STRINGL((char *)comment, comment_len, 1);
 }
 /* }}} */
 
@@ -1983,7 +1983,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.1.2.10 2006/09/06 15:19:41 nlopess Exp $");
+       php_info_print_table_row(2, "Extension Version","$Id: php_zip.c,v 
1.1.2.11 2006/09/06 17:24:41 pajoye Exp $");
        php_info_print_table_row(2, "Zip version", "1.7.1");
        php_info_print_table_row(2, "Libzip version", "0.7.1");
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to