From 7dde02d3962ce6627eeff694db1cb4727aa5bd4d Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 1 Jun 2026 01:02:26 +0000 Subject: [PATCH] =?UTF-8?q?SMS=20=EB=AA=A8=EB=93=88=20Add/Add2=20=EB=A7=A4?= =?UTF-8?q?=EA=B0=9C=EB=B3=80=EC=88=98=20=EA=B8=B0=EB=B3=B8=EA=B0=92=20?= =?UTF-8?q?=EB=B3=B4=EC=A0=95=20(PHP=208=20=ED=98=B8=ED=99=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 기본값 있는 $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) --- lib/icode.lms.lib.php | 2 +- plugin/sms5/sms5.lib.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/icode.lms.lib.php b/lib/icode.lms.lib.php index 436206c0e..ebda521e9 100644 --- a/lib/icode.lms.lib.php +++ b/lib/icode.lms.lib.php @@ -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 설정. diff --git a/plugin/sms5/sms5.lib.php b/plugin/sms5/sms5.lib.php index f48341dfc..3dae4828a 100644 --- a/plugin/sms5/sms5.lib.php +++ b/plugin/sms5/sms5.lib.php @@ -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);