diff options
author | Rasmus Lerdorf <rasmus@lerdorf.com> | 2015-03-20 23:32:07 -0700 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@lerdorf.com> | 2015-03-20 23:32:07 -0700 |
commit | 4d10e15845bfaf0987b5daa02f7fce745b9b287c (patch) | |
tree | b6dd0e3336ec8715a159bc1b474ac5f01ea77131 | |
parent | 595e46fdebbdce45a6a2662ea98e62639473223d (diff) | |
download | php-git-4d10e15845bfaf0987b5daa02f7fce745b9b287c.tar.gz |
Fix a couple of warnings
-rw-r--r-- | ext/zip/php_zip.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 375df46bc9..34b3733d7e 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -956,7 +956,6 @@ static HashTable *php_zip_get_properties(zval *object)/* {{{ */ HashTable *props; zip_prop_handler *hnd; zend_string *key; - zend_ulong num_key; obj = Z_ZIP_P(object); props = zend_std_get_properties(object); @@ -965,7 +964,7 @@ static HashTable *php_zip_get_properties(zval *object)/* {{{ */ return NULL; } - ZEND_HASH_FOREACH_KEY_PTR(obj->prop_handler, num_key, key, hnd) { + ZEND_HASH_FOREACH_STR_KEY_PTR(obj->prop_handler, key, hnd) { zval *ret, val; ret = php_zip_property_reader(obj, hnd, &val); if (ret == NULL) { @@ -1627,7 +1626,7 @@ static void php_zip_add_from_pattern(INTERNAL_FUNCTION_PARAMETERS, int type) /* if (remove_path && remove_path_len > 1) { size_t real_len = strlen(remove_path); - if (real_len > 1 && remove_path[real_len - 1] == '/' || remove_path[real_len - 1] == '\\') { + if ((real_len > 1) && ((remove_path[real_len - 1] == '/') || (remove_path[real_len - 1] == '\\'))) { remove_path[real_len - 1] = '\0'; } } |