diff --git a/htdocs/admin/system/phpinfo.php b/htdocs/admin/system/phpinfo.php
index bcc3aba20d4..45d9166811a 100644
--- a/htdocs/admin/system/phpinfo.php
+++ b/htdocs/admin/system/phpinfo.php
@@ -28,6 +28,8 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
$langs->load("admin");
+$langs->load("install");
+$langs->load("errors");
if (! $user->admin)
accessforbidden();
@@ -66,20 +68,109 @@ if ($maxphp > 0 && $maxphp2 > 0 && $maxphp > $maxphp2)
print '
';
}
-
print '
| '.$langs->trans("Parameter").' | '.$langs->trans("Value").' |
| '.$langs->trans("Version")." | ".$phpversion." |
| '.$langs->trans("Version").' | ';
+$arrayphpminversionerror = array(5,5,0);
+$arrayphpminversionwarning = array(5,5,0);
+if (versioncompare(versionphparray(), $arrayphpminversionerror) < 0)
+{
+ print ' |
| GET and POST support | ';
+
+if (! isset($_GET["testget"]) && ! isset($_POST["testpost"]))
+{
+ print ' |
| Sessions support | ';
+
+if (! function_exists("session_id"))
+{
+ print ' |
| GD support | ';
+
+if (! function_exists("imagecreate"))
+{
+ print ' |
| Curl support | ';
+
+if (! function_exists("curl_init"))
+{
+ print ' |
| UTF-8 support | ';
+
+if (! function_exists("utf8_encode"))
+{
+ print ' |
| Intl support | ';
+
+if (empty($_SERVER["SERVER_ADMIN"]) || $_SERVER["SERVER_ADMIN"] != 'doliwamp@localhost')
+{
+ if (! function_exists("locale_get_primary_language") || ! function_exists("locale_get_region"))
+ {
+ print ' |