Browse Source

[HttpFoundation][Windows] Fixed filebinary guesser method.

Pascal Borreli 14 years ago
parent
commit
44a6f84855

+ 4 - 0
src/Symfony/Component/HttpFoundation/File/MimeType/FileBinaryMimeTypeGuesser.php

@@ -45,6 +45,10 @@ class FileBinaryMimeTypeGuesser implements MimeTypeGuesserInterface
             throw new AccessDeniedException($path);
         }
 
+        if (!self::isSupported()) {
+            return null;
+        }
+        
         ob_start();
 
         // need to use --mime instead of -i. see #6641