Selaa lähdekoodia

Add support for imagemagick <3.3, refs #7762

Jordi Boggiano 6 vuotta sitten
vanhempi
commit
489e0d4b12
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/Composer/Repository/PlatformRepository.php

+ 1 - 1
src/Composer/Repository/PlatformRepository.php

@@ -164,7 +164,7 @@ class PlatformRepository extends ArrayRepository
                     $reflector->info();
                     $output = ob_get_clean();
 
-                    preg_match('/^Imagick using ImageMagick library version => ImageMagick ([\d.]+)-(\d+)/m', $output, $matches);
+                    preg_match('/^(Imagick using ImageMagick library version|ImageMagick version) => ImageMagick ([\d.]+)-(\d+)/m', $output, $matches);
                     $prettyVersion = "{$matches[1]}.{$matches[2]}";
 
                     break;