svn: /php/php-src/ branches/PHP_5_3/ext/zip/php_zip.c trunk/ext/zip/php_zip.c
| From: | Ilia Alshanetsky | Date: | Mon, 20 Sep 2010 12:48:27 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/zip/php_zip.c trunk/ext/zip/php_zip.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-63533@lists.php.net to get a copy of this message | ||
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;