SMS 모듈 Add/Add2 매개변수 기본값 보정 (PHP 8 호환)
기본값 있는 $strDate 뒤에 기본값 없는 $nCount 가 선언되어 PHP 8.0+ 에서 경고가 발생하던 것을 $nCount=0 기본값 부여로 해소. - plugin/sms5/sms5.lib.php: Add(), Add2() - lib/icode.lms.lib.php: Add() (LMS 부모 클래스 동일 패턴) LMS 분기 호출부는 $strDate, $nCount 를 항상 함께 전달하므로 동작 변화 없음. PHP 5.2~8.3 호환 유지. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
31871ee3e6
commit
7dde02d396
2 files changed
+3
-3
No files matched your search
@@ -60,7 +60,7 @@ class LMS {
|
||||
$this->Result = array(); // 발송결과값이 배열로 들어간다.
|
||||
}
|
||||
|
||||
function Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate="", $nCount) {
|
||||
function Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate="", $nCount=0) {
|
||||
global $config;
|
||||
|
||||
// 문자 타입별 Port 설정.
|
||||
|
||||
@@ -161,7 +161,7 @@ if($config['cf_sms_type'] == 'LMS') {
|
||||
public $Result = array();
|
||||
public $Log = array();
|
||||
|
||||
function Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate="", $nCount) {
|
||||
function Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate="", $nCount=0) {
|
||||
global $config;
|
||||
|
||||
// 아이코드 JSON 모듈은 UTF-8 을 사용하며, sms 또는 lms 는 euc-kr 로 사용한다.
|
||||
@@ -280,7 +280,7 @@ if($config['cf_sms_type'] == 'LMS') {
|
||||
break;
|
||||
}
|
||||
}
|
||||
function Add2($strDest, $strCallBack, $strCaller, $strURL, $strMessage, $strDate="", $nCount) {
|
||||
function Add2($strDest, $strCallBack, $strCaller, $strURL, $strMessage, $strDate="", $nCount=0) {
|
||||
global $g5, $config;
|
||||
|
||||
$Error = $this->CheckCommonTypeDest($strDest, $nCount);
|
||||
|
||||
Reference in new issue
Block a user