summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-02-14 14:02:19 +0100
committerNikita Popov <nikic@php.net>2016-02-14 14:45:53 +0100
commitc9357f82d3882eb3c7cb9f63dbc98d354fb20739 (patch)
treee4733ea1e1f5d866ef8ba6b63eb93b013d95c348 /ext/zip/php_zip.c
parent59833783641622160903d56c0aa522db01b59f4c (diff)
downloadphp-git-c9357f82d3882eb3c7cb9f63dbc98d354fb20739.tar.gz
Format string fixes
Conflicts: ext/pgsql/pgsql.c
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r--ext/zip/php_zip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index ff3e60e4a9..83c14b5836 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -331,7 +331,7 @@ static int php_zip_parse_options(zval *options, zend_long *remove_all_path, char
}
if (Z_STRLEN_P(option) >= MAXPATHLEN) {
- php_error_docref(NULL, E_WARNING, "remove_path string is too long (max: %i, %i given)",
+ php_error_docref(NULL, E_WARNING, "remove_path string is too long (max: %d, %zd given)",
MAXPATHLEN - 1, Z_STRLEN_P(option));
return -1;
}
@@ -351,7 +351,7 @@ static int php_zip_parse_options(zval *options, zend_long *remove_all_path, char
}
if (Z_STRLEN_P(option) >= MAXPATHLEN) {
- php_error_docref(NULL, E_WARNING, "add_path string too long (max: %i, %i given)",
+ php_error_docref(NULL, E_WARNING, "add_path string too long (max: %d, %zd given)",
MAXPATHLEN - 1, Z_STRLEN_P(option));
return -1;
}