helly Sun Sep 7 19:46:34 2003 EDT
Modified files:
/php-src/ext/exif exif.c
Log:
Allow to search for section FILE with 2nd parameter (found by Derick)
Index: php-src/ext/exif/exif.c
diff -u php-src/ext/exif/exif.c:1.156 php-src/ext/exif/exif.c:1.157
--- php-src/ext/exif/exif.c:1.156 Sun Aug 17 14:21:35 2003
+++ php-src/ext/exif/exif.c Sun Sep 7 19:46:33 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: exif.c,v 1.156 2003/08/17 18:21:35 helly Exp $ */
+/* $Id: exif.c,v 1.157 2003/09/07 23:46:33 helly Exp $ */
/* ToDos
*
@@ -111,7 +111,7 @@
};
/* }}} */
-#define EXIF_VERSION "1.4 $Id: exif.c,v 1.156 2003/08/17 18:21:35 helly Exp $"
+#define EXIF_VERSION "1.4 $Id: exif.c,v 1.157 2003/09/07 23:46:33 helly Exp $"
/* {{{ PHP_MINFO_FUNCTION
*/
@@ -3816,14 +3816,16 @@
exif_error_docref(NULL EXIFERR_CC, &ImageInfo, E_NOTICE, "Sections
found: %s", sections_str[0] ? sections_str : "None");
#endif
- ImageInfo.sections_found |= FOUND_COMPUTED;/* do not inform about in debug*/
+ ImageInfo.sections_found |= FOUND_COMPUTED|FOUND_FILE;/* do not inform about
in debug*/
- if (ret==FALSE || (sections_needed &&
!(sections_needed&ImageInfo.sections_found)) || array_init(return_value) == FAILURE) {
+ if (ret==FALSE || (sections_needed &&
!(sections_needed&ImageInfo.sections_found))) {
/* array_init must be checked at last! otherwise the array must be
freed if a later test fails. */
exif_discard_imageinfo(&ImageInfo);
EFREE_IF(sections_str);
RETURN_FALSE;
}
+
+ array_init(return_value);
#ifdef EXIF_DEBUG
exif_error_docref(NULL EXIFERR_CC, &ImageInfo, E_NOTICE, "Generate section
FILE");
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php