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);