From: foobar Date: Sat, 4 Aug 2001 01:56:40 +0000 (+0000) Subject: Fixed bug: #11784 (combined with fixes Rasmus committed..) X-Git-Tag: PRE_ENGINE2_SPLIT~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=faaeee3705df5133568905d6be85494dae4de424;p=php Fixed bug: #11784 (combined with fixes Rasmus committed..) --- diff --git a/ext/exif/exif.c b/ext/exif/exif.c index ad5e6d8df1..4469e43d70 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -1123,10 +1123,6 @@ PHP_FUNCTION(read_exif_data) ImageInfoType ImageInfo; char tmp[64]; - /*ImageInfo.Thumbnail = NULL; - ImageInfo.ThumbnailSize = 0; - */ - if ((ac < 1 || ac > 2) || zend_get_parameters_ex(ac, &p_name, &p_readall) == FAILURE) { WRONG_PARAM_COUNT; } @@ -1217,7 +1213,7 @@ PHP_FUNCTION(read_exif_data) if(ImageInfo.Comments[0]) { add_assoc_string(return_value,"Comments",ImageInfo.Comments,1); } - if(ImageInfo.ThumbnailSize) { + if(ImageInfo.ThumbnailSize && ImageInfo.Thumbnail) { add_assoc_stringl(return_value,"Thumbnail",ImageInfo.Thumbnail,ImageInfo.ThumbnailSize,1); add_assoc_long(return_value,"ThumbnailSize",ImageInfo.ThumbnailSize); efree(ImageInfo.Thumbnail);