From: Marcus Boerger Date: Tue, 10 Dec 2002 14:35:13 +0000 (+0000) Subject: -make those debug messages X-Git-Tag: RELEASE_1_0b3~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26c5c323ab38667b002761395b4d8f33ca1b38bc;p=php -make those debug messages --- 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; }