helly Tue Dec 10 09:35:17 2002 EDT
Modified files:
/php4/ext/exif exif.c
Log:
-make those debug messages
Index: php4/ext/exif/exif.c
diff -u php4/ext/exif/exif.c:1.124 php4/ext/exif/exif.c:1.125
--- php4/ext/exif/exif.c:1.124 Mon Dec 9 19:10:27 2002
+++ php4/ext/exif/exif.c Tue Dec 10 09:35:13 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: exif.c,v 1.124 2002/12/10 00:10:27 iliaa Exp $ */
+/* $Id: exif.c,v 1.125 2002/12/10 14:35:13 helly Exp $ */
/* ToDos
*
@@ -89,7 +89,7 @@
};
/* }}} */
-#define EXIF_VERSION "1.4 $Id: exif.c,v 1.124 2002/12/10 00:10:27 iliaa Exp $"
+#define EXIF_VERSION "1.4 $Id: exif.c,v 1.125 2002/12/10 14:35:13 helly Exp $"
/* {{{ PHP_MINFO_FUNCTION
*/
@@ -1129,10 +1129,14 @@
/* 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 @@
/* 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 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php