From 5894737e804f35d227920d50669e624463603fd1 Mon Sep 17 00:00:00 2001 From: Cedric Fitzgerald Date: Tue, 27 Oct 2026 14:32:35 -0700 Subject: [PATCH] chore(universal): disable PHP session upload progress Workspaces don't need PHP's session upload progress tracking. Turn it off for every installed PHP version with a conf.d drop-in, and fail the build if any version still reports it as enabled. Co-Authored-By: Claude Opus 5.5 --- images/universal/ubuntu.Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/images/universal/ubuntu.Dockerfile b/images/universal/ubuntu.Dockerfile index 5d332a6..6467d34 100644 --- a/images/universal/ubuntu.Dockerfile +++ b/images/universal/ubuntu.Dockerfile @@ -36,6 +36,13 @@ RUN cp /etc/profile.d/00-restore-env.sh /tmp/00-restore-env.sh && \ mv /tmp/00-restore-env.sh /etc/profile.d/00-restore-env.sh && \ rm -rf /tmp/php-install.sh /var/lib/apt/lists/* +# Disable PHP session upload progress tracking for every installed version, +# and fail the build if any version still reports it as enabled. +RUN for php_dir in /usr/local/php/[0-9]*; do \ + echo "session.upload_progress.enabled=0" >"${php_dir}/ini/conf.d/session.ini" && \ + "${php_dir}/bin/php" -r 'exit((int) ini_get("session.upload_progress.enabled"));' || exit 1; \ + done + # Rename the upstream `codespace` user to `coder` so we preserve the # existing home directory and shell environment provided by the base image. RUN usermod -l coder codespace && \