summaryrefslogtreecommitdiff
path: root/ext/exif
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-04-15 15:40:40 +0400
committerDmitry Stogov <dmitry@zend.com>2014-04-15 15:40:40 +0400
commit050d7e38ad4163e7fa65e26724d3516ce7b33601 (patch)
tree2bb49b1b73c37b35fc778e83d9353f0eb9cc12a3 /ext/exif
parent93d3a613d82d32dd6f5499e211bfe194d60898b0 (diff)
downloadphp-git-050d7e38ad4163e7fa65e26724d3516ce7b33601.tar.gz
Cleanup (1-st round)
Diffstat (limited to 'ext/exif')
-rw-r--r--ext/exif/exif.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index 0b28f1c260..7900998a81 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -1981,9 +1981,9 @@ static void add_assoc_image_info(zval *value, int sub_array, image_info_type *im
case TAG_FMT_SBYTE:
case TAG_FMT_UNDEFINED:
if (!info_value->s) {
- add_assoc_stringl(tmpi, name, "", 0, 1);
+ add_assoc_stringl(tmpi, name, "", 0);
} else {
- add_assoc_stringl(tmpi, name, info_value->s, info_data->length, 1);
+ add_assoc_stringl(tmpi, name, info_value->s, info_data->length);
}
break;
@@ -1992,9 +1992,9 @@ static void add_assoc_image_info(zval *value, int sub_array, image_info_type *im
val = "";
}
if (section_index==SECTION_COMMENT) {
- add_index_string(tmpi, idx++, val, 1);
+ add_index_string(tmpi, idx++, val);
} else {
- add_assoc_string(tmpi, name, val, 1);
+ add_assoc_string(tmpi, name, val);
}
break;
@@ -2039,9 +2039,9 @@ static void add_assoc_image_info(zval *value, int sub_array, image_info_type *im
case TAG_FMT_URATIONAL:
snprintf(buffer, sizeof(buffer), "%i/%i", info_value->ur.num, info_value->ur.den);
if (l==1) {
- add_assoc_string(tmpi, name, buffer, 1);
+ add_assoc_string(tmpi, name, buffer);
} else {
- add_index_string(array, ap, buffer, 1);
+ add_index_string(array, ap, buffer);
}
break;
@@ -2065,9 +2065,9 @@ static void add_assoc_image_info(zval *value, int sub_array, image_info_type *im
case TAG_FMT_SRATIONAL:
snprintf(buffer, sizeof(buffer), "%i/%i", info_value->sr.num, info_value->sr.den);
if (l==1) {
- add_assoc_string(tmpi, name, buffer, 1);
+ add_assoc_string(tmpi, name, buffer);
} else {
- add_index_string(array, ap, buffer, 1);
+ add_index_string(array, ap, buffer);
}
break;