From 3e88ddfd53c5726e1a722841026d27b6945cfd9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?=
Date: Mon, 22 Oct 2001 19:57:08 +0000
Subject: [PATCH] ensured sockets are never used neither displayed if php <
3.0.10
---
main.php3 | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/main.php3 b/main.php3
index 742678266..1962d92f4 100755
--- a/main.php3
+++ b/main.php3
@@ -50,7 +50,8 @@ if ($server > 0) {
if (!empty($cfgServer['port'])) {
echo ':' . $cfgServer['port'];
}
- if (!empty($cfgServer['socket'])) {
+ // loic1: connection with socket is only available since php 3.0.10
+ if (!empty($cfgServer['socket']) && PHP_INT_VERSION >= 30010) {
echo ':' . $cfgServer['socket'];
}
echo ' ' . $strRunningAs . ' ' . mysql_result($res, 0, 'user') . '
' . "\n";
@@ -102,7 +103,8 @@ if ($server == 0 || count($cfgServers) > 1) {
if (!empty($val['port'])) {
echo ':' . $val['port'];
}
- if (!empty($val['socket'])) {
+ // loic1: connection with socket is only available since php 3.0.10
+ if (!empty($val['socket']) && PHP_INT_VERSION >= 30010) {
echo ':' . $val['socket'];
}
// loic1: if 'only_db' is an array and there is more than one