summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-10 14:35:13 +0000
committerMarcus Boerger <helly@php.net>2002-12-10 14:35:13 +0000
commit26c5c323ab38667b002761395b4d8f33ca1b38bc (patch)
tree637d199f2b4bb52b530d14f4fb80ba6249998475
parent922ce573cfb4ae52e14229cf9a0ad503fa05d903 (diff)
downloadphp-git-26c5c323ab38667b002761395b4d8f33ca1b38bc.tar.gz
-make those debug messages
-rw-r--r--ext/exif/exif.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index 4b3200d5af..b14f4bafd3 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -1129,10 +1129,14 @@ static double exif_convert_any_format(void *value, int format, int motorola_inte
/* Not sure if this is correct (never seen float used in Exif format) */
case TAG_FMT_SINGLE:
+#ifdef EXIF_DEBUG
php_error_docref( NULL TSRMLS_CC, E_NOTICE, "Found value of type single");
+#endif
return (double)*(float *)value;
case TAG_FMT_DOUBLE:
+#ifdef EXIF_DEBUG
php_error_docref( NULL TSRMLS_CC, E_NOTICE, "Found value of type double");
+#endif
return *(double *)value;
}
return 0;
@@ -1174,10 +1178,14 @@ static size_t exif_convert_any_to_int(void *value, int format, int motorola_inte
/* Not sure if this is correct (never seen float used in Exif format) */
case TAG_FMT_SINGLE:
+#ifdef EXIF_DEBUG
php_error_docref( NULL TSRMLS_CC, E_NOTICE, "Found value of type single");
+#endif
return (size_t)*(float *)value;
case TAG_FMT_DOUBLE:
+#ifdef EXIF_DEBUG
php_error_docref( NULL TSRMLS_CC, E_NOTICE, "Found value of type double");
+#endif
return (size_t)*(double *)value;
}
return 0;
@@ -1647,11 +1655,15 @@ static void exif_iif_add_value(image_info_type *image_info, int section_index, c
break;
case TAG_FMT_SINGLE:
+#ifdef EXIF_DEBUG
php_error_docref( NULL TSRMLS_CC, E_WARNING, "Found value of type single");
+#endif
info_value->f = *(float *)value;
case TAG_FMT_DOUBLE:
+#ifdef EXIF_DEBUG
php_error_docref( NULL TSRMLS_CC, E_WARNING, "Found value of type double");
+#endif
info_value->d = *(double *)value;
break;
}