From c51c95f8c88b524bb5f54c301c07a9c4fea86f32 Mon Sep 17 00:00:00 2001 From: jisangs Date: Thu, 22 Oct 2026 15:33:06 +0900 Subject: [PATCH] =?UTF-8?q?PHP=208.3=20=EB=AC=B8=EB=B2=95=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EA=B2=BD=EA=B3=A0=20=EB=82=98=EC=98=A4=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EB=B2=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/stage-git/Dockerfile | 3 +++ src/web/php/db/menu_collection.php | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/deploy/stage-git/Dockerfile b/deploy/stage-git/Dockerfile index 03f9fa8..80ddb37 100644 --- a/deploy/stage-git/Dockerfile +++ b/deploy/stage-git/Dockerfile @@ -21,6 +21,9 @@ RUN { \ ENV TZ=Asia/Seoul RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +# 운영 서버와 동일하게 production 설정 사용 (display_errors=Off). 경고/알림이 JSON 응답에 섞이지 않게 한다. +RUN cp "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" + RUN { \ echo 'mysqli.max_persistent = 1'; \ echo 'mysqli.max_links = -1'; \ diff --git a/src/web/php/db/menu_collection.php b/src/web/php/db/menu_collection.php index c229a95..7e73f6d 100644 --- a/src/web/php/db/menu_collection.php +++ b/src/web/php/db/menu_collection.php @@ -90,7 +90,8 @@ class MenuCollection extends DBMethodContainer FROM app WHERE AppType=? AND Status=1"; $stmt = $this->mysqli->prepare($query); - $stmt->bind_param("i", $this->getTypingAppType($appGroup, $language)); + $appType = $this->getTypingAppType($appGroup, $language); + $stmt->bind_param("i", $appType); $stmt->execute(); $stmt->bind_result($appID, $appName, $koreanName); @@ -159,7 +160,8 @@ class MenuCollection extends DBMethodContainer FROM app AS A INNER JOIN active_app AS AA ON A.AppID = AA.AppID AND A.AppType=? AND AA.MaestroID=?"; $stmt = $this->mysqli->prepare($query); - $stmt->bind_param("ii", $this->getTypingAppType($appGroup, $language), $maestroID); + $appType = $this->getTypingAppType($appGroup, $language); + $stmt->bind_param("ii", $appType, $maestroID); $stmt->execute(); $stmt->bind_result($appID);