]> granicus.if.org Git - php/commitdiff
-make those debug messages
authorMarcus Boerger <helly@php.net>
Tue, 10 Dec 2002 14:35:13 +0000 (14:35 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 10 Dec 2002 14:35:13 +0000 (14:35 +0000)
ext/exif/exif.c

index 4b3200d5af052d5f8c600d0f438a7204f34de517..b14f4bafd3f521054b0815887263b20526b4d1f5 100644 (file)
@@ -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;
                                }