From f9db23097befba0e0a3f7bdb7e2a10fdfca94183 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 23 Mar 2026 08:42:56 -0400 Subject: [PATCH] chore: ensure PHP never sees empty session config values Signed-off-by: Josh --- docker-entrypoint.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 97f8de8f..23a65272 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -91,12 +91,13 @@ configure_redis_session() { echo "=> Configuring PHP session handler..." if [ -z "${REDIS_HOST:-}" ]; then - echo "==> Using default PHP session handler" - unset PHP_REDIS_SESSION_HANDLER - unset PHP_REDIS_SESSION_SAVE_PATH - unset PHP_REDIS_SESSION_LOCKING_ENABLED - unset PHP_REDIS_SESSION_LOCK_RETRIES - unset PHP_REDIS_SESSION_LOCK_WAIT_TIME + echo "==> Using default PHP session handler (files)" + # @todo: consider moving to PHP 8.3 missing env variable fallbacks in the ini file itself + export PHP_REDIS_SESSION_HANDLER='files' + export PHP_REDIS_SESSION_SAVE_PATH='' + export PHP_REDIS_SESSION_LOCKING_ENABLED='0' + export PHP_REDIS_SESSION_LOCK_RETRIES='0' + export PHP_REDIS_SESSION_LOCK_WAIT_TIME='0' return 0 fi