lsphp-src-build: reproduce packaged session.upload_progress.enabled=1 default (step 2c)
Emergency run 5683 failed the 4b ini-defaults gate in all 8 jobs; that was the only differing default. Gate kept. [skip ci] Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
2b308e9192
commit
01ac98d677
3 files changed
+47
No files matched your search
@@ -173,6 +173,21 @@ if [ -n "$PKG_SAVE_PATH" ]; then
|
||||
log "compiled-in session.save_path default set to '$PKG_SAVE_PATH' (as the packaged lsphp${PHPVER})"
|
||||
fi
|
||||
|
||||
## Measured 2026-11-19 (emergency from-source run 5683, all 4 versions): the
|
||||
## packaged lsphp82-85 report session.upload_progress.enabled='1' under `php -n`;
|
||||
## php.net's source default is "0" (the value sits on the line AFTER the name in
|
||||
## ext/session/session.c). That was the ONLY difference the 4b gate listed. Follow
|
||||
## the packaged binary; per-site php.ini hardening can still turn it off.
|
||||
PKG_UP=$("$P/bin/php" -n -r 'echo ini_get("session.upload_progress.enabled");')
|
||||
if [ "$PKG_UP" = "1" ]; then
|
||||
sed -i -E '/STD_PHP_INI_BOOLEAN\("session\.upload_progress\.enabled",/{n;s/"0"/"1"/}' "$SRC/ext/session/session.c"
|
||||
grep -A1 -F '"session.upload_progress.enabled"' "$SRC/ext/session/session.c" | grep -F '"1"' >/dev/null \
|
||||
|| die "could not apply the packaged session.upload_progress.enabled default '1' to ext/session/session.c (source layout changed?)."
|
||||
log "compiled-in session.upload_progress.enabled default set to '1' (as the packaged lsphp${PHPVER})"
|
||||
elif [ "$PKG_UP" != "0" ]; then
|
||||
die "unexpected packaged session.upload_progress.enabled default '$PKG_UP'."
|
||||
fi
|
||||
|
||||
## ---- 3. replay the packaged configure line -----------------------------------
|
||||
CFG_LINE=$("$P/bin/php" -i | awk -F' => ' '$1 == "Configure Command " || $1 == "Configure Command" {sub(/^[^=]*=> /, ""); print}')
|
||||
[ -n "$CFG_LINE" ] || die "could not read 'Configure Command' from the packaged $P/bin/php -i."
|
||||
|
||||
Reference in new issue
Block a user