[BUGFIX] Suppress EXIF warnings indexing images 60/27160/2
authorFelix Althaus <felix.althaus@undkonsorten.com>
Thu, 30 Jan 2014 16:42:44 +0000 (17:42 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Wed, 19 Feb 2014 11:29:28 +0000 (12:29 +0100)
FileContentParser used to issue a warning trying to index image
files with corrupted EXIF data. Suppress these warnings to fail
silently.

Resolves: #55286
Releases: 6.2, 6.1
Change-Id: I863601f5579ab74a0743ab684cf1d898b633edba
Reviewed-on: https://review.typo3.org/27160
Reviewed-by: Wouter Wolters
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/indexed_search/Classes/FileContentParser.php

index a56a8fd..ddb2729 100644 (file)
@@ -628,7 +628,7 @@ class FileContentParser {
                                $this->setLocaleForServerFileSystem();
                                // PHP EXIF
                                if (function_exists('exif_read_data')) {
-                                       $exif = exif_read_data($absFile, 'IFD0');
+                                       $exif = @exif_read_data($absFile, 'IFD0');
                                } else {
                                        $exif = FALSE;
                                }