php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun
2021-01-04 15:33:29 +09:00
parent 10d377de7d
commit 582d1a01f4
852 changed files with 120617 additions and 6307 deletions

View File

@ -375,7 +375,7 @@ class Services_JSON
*/
// treat as a JSON object
if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) {
if (is_array($var) && count($var) && (array_keys($var) !== range(0, count($var) - 1))) {
$properties = array_map(array($this, 'name_value'),
array_keys($var),
array_values($var));
@ -801,6 +801,4 @@ if (class_exists('PEAR_Error')) {
}
}
}
?>
}

View File

@ -1116,5 +1116,4 @@ class XPayClient
//close curl session and free up resources
curl_close($this->ch);
}
}
?>
}

View File

@ -1114,5 +1114,4 @@ class XPayClient
//close curl session and free up resources
curl_close($this->ch);
}
}
?>
}

View File

@ -24,5 +24,4 @@
$xpay = &new XPayClient($configPath, $CST_PLATFORM);
$xpay->Init_TX($LGD_MID);
echo "patch result = ".$xpay->Patch("lgdacom.conf");
?>
echo "patch result = ".$xpay->Patch("lgdacom.conf");

View File

@ -44,5 +44,4 @@
echo "[TX_PING error] <br>";
echo "response code = " . $xpay->Response_Code() . "<br>";
echo "response msg = " . $xpay->Response_Msg() . "<p>";
}
?>
}