Added more libraries to PlatformRepository
parent
8d3c85225f
commit
432815df67
|
@ -69,6 +69,8 @@ class PlatformRepository extends ArrayRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
// Another quick loop, just for possible libraries
|
// Another quick loop, just for possible libraries
|
||||||
|
// Doing it this way to know that functions or constants exist before
|
||||||
|
// relying on them.
|
||||||
foreach ($loadedExtensions as $name) {
|
foreach ($loadedExtensions as $name) {
|
||||||
switch ($name) {
|
switch ($name) {
|
||||||
// Skipped "extensions"
|
// Skipped "extensions"
|
||||||
|
@ -76,12 +78,15 @@ class PlatformRepository extends ArrayRepository
|
||||||
case 'Core':
|
case 'Core':
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Curl exposes its version by the curl_version function
|
|
||||||
case 'curl':
|
case 'curl':
|
||||||
$curlVersion = curl_version();
|
$curlVersion = curl_version();
|
||||||
$prettyVersion = $curlVersion['version'];
|
$prettyVersion = $curlVersion['version'];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'iconv':
|
||||||
|
$prettyVersion = ICONV_VERSION;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'libxml':
|
case 'libxml':
|
||||||
$prettyVersion = LIBXML_DOTTED_VERSION;
|
$prettyVersion = LIBXML_DOTTED_VERSION;
|
||||||
break;
|
break;
|
||||||
|
@ -91,10 +96,23 @@ class PlatformRepository extends ArrayRepository
|
||||||
$prettyVersion = trim($prettyVersion);
|
$prettyVersion = trim($prettyVersion);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'mysqli':
|
||||||
|
// not so pretty version
|
||||||
|
$prettyVersion = mysqli_get_client_version();
|
||||||
|
break;
|
||||||
|
|
||||||
case 'pcre':
|
case 'pcre':
|
||||||
$prettyVersion = PCRE_VERSION;
|
$prettyVersion = PCRE_VERSION;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'uuid':
|
||||||
|
$prettyVersion = UUID_VERSION;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'xsl':
|
||||||
|
$prettyVersion = LIBXSLT_DOTTED_VERSION;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// None handled extensions have no special cases, skip
|
// None handled extensions have no special cases, skip
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue