iliaa                                    Mon, 20 Sep 2010 12:48:27 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=303622

Log:
Fixed a compiler warning

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/zip/php_zip.c
    U   php/php-src/trunk/ext/zip/php_zip.c

Modified: php/php-src/branches/PHP_5_3/ext/zip/php_zip.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/zip/php_zip.c      2010-09-20 12:34:44 UTC 
(rev 303621)
+++ php/php-src/branches/PHP_5_3/ext/zip/php_zip.c      2010-09-20 12:48:27 UTC 
(rev 303622)
@@ -1649,7 +1649,7 @@

                                if (add_path) {
                                        if ((add_path_len + file_stripped_len) 
> MAXPATHLEN) {
-                                               php_error_docref(NULL 
TSRMLS_CC, E_WARNING, "Entry name too long (max: %i, %i given)",
+                                               php_error_docref(NULL 
TSRMLS_CC, E_WARNING, "Entry name too long (max: %d, %ld given)",
                                                MAXPATHLEN - 1, (add_path_len + 
file_stripped_len));
                                                zval_dtor(return_value);
                                                RETURN_FALSE;

Modified: php/php-src/trunk/ext/zip/php_zip.c
===================================================================
--- php/php-src/trunk/ext/zip/php_zip.c 2010-09-20 12:34:44 UTC (rev 303621)
+++ php/php-src/trunk/ext/zip/php_zip.c 2010-09-20 12:48:27 UTC (rev 303622)
@@ -1662,7 +1662,7 @@

                                if (add_path) {
                                        if ((add_path_len + file_stripped_len) 
> MAXPATHLEN) {
-                                               php_error_docref(NULL 
TSRMLS_CC, E_WARNING, "Entry name too long (max: %i, %i given)",
+                                               php_error_docref(NULL 
TSRMLS_CC, E_WARNING, "Entry name too long (max: %d, %ld given)",
                                                MAXPATHLEN - 1, (add_path_len + 
file_stripped_len));
                                                zval_dtor(return_value);
                                                RETURN_FALSE;

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

Reply via email to