1
0
Fork 0

add lib-imagick to show -p output (#7762)

pull/7806/head
Elan Ruusamäe 2018-11-26 13:37:56 +02:00 committed by Jordi Boggiano
parent b0b00ad1fa
commit f9234222d1
1 changed files with 12 additions and 0 deletions

View File

@ -157,6 +157,18 @@ class PlatformRepository extends ArrayRepository
break;
case 'imagick':
$reflector = new \ReflectionExtension('imagick');
ob_start();
$reflector->info();
$output = ob_get_clean();
preg_match('/^Imagick using ImageMagick library version => ImageMagick ([\d.]+)-(\d+)/m', $output, $matches);
$prettyVersion = "{$matches[1]}.{$matches[2]}";
break;
case 'libxml':
$prettyVersion = LIBXML_DOTTED_VERSION;
break;