for (de=0;de<NumDirEntries;de++) {
if (!exif_process_IFD_TAG(ImageInfo, dir_start + 2 + 12 * de,
offset_base, IFDlength, displacement, section_index, 1, exif_get_tag_table(section_index))) {
- continue;
+ return FALSE;
}
}
/*
if ((itemlen - 2) < 6) {
return FALSE;
}
+
exif_process_SOFn(Data, marker, &sof_info);
ImageInfo->Width = sof_info.width;
ImageInfo->Height = sof_info.height;
+++ /dev/null
---TEST--
-Bug #72735 (Samsung picture thumb not read (zero size))
---SKIPIF--
-<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
---FILE--
-<?php
-foreach (['nokia.jpg', 'samsung.jpg'] as $picture) {
- $len = strlen(exif_thumbnail(__DIR__ . '/' . $picture));
-
- if ($len === 0) {
- echo $picture . ': error, no thumbnail length', PHP_EOL;
-
- continue;
- }
-
- echo $picture . ': int(' . $len . ')', PHP_EOL;
-}
-?>
---EXPECTF--
-nokia.jpg: int(%d)
-samsung.jpg: int(%d)