Skip to content

Fix composable file mode under WP-CLI - #3430

Merged
chubes4 merged 2 commits into
mainfrom
fix/3429-composable-file-mode
Aug 26, 2026
Merged

Fix composable file mode under WP-CLI#3430
chubes4 merged 2 commits into
mainfrom
fix/3429-composable-file-mode

Conversation

@chubes4

@chubes4 chubes4 commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

  • use WordPress's FS_CHMOD_FILE when defined and a safe 0644 default otherwise
  • exercise defined and undefined constant environments in isolated PHP processes
  • preserve atomic replacement, temporary-file cleanup, and group-writable normalization coverage

Closes #3429.

Verification

  • php tests/composable-file-atomic-write-smoke.php
  • php -l inc/Engine/AI/ComposableFileGenerator.php
  • php -l tests/composable-file-atomic-write-smoke.php
  • git diff --check

AI Assistance

OpenAI GPT-5.6 Sol via OpenCode traced the live WP-CLI fatal, implemented the fallback and process-isolated regression coverage, reviewed an asynchronously produced candidate diff, and ran verification under Chris Huber's direction.

@chubes4
chubes4 merged commit 3bf6326 into main Aug 26, 2026
30 checks passed
@chubes4
chubes4 deleted the fix/3429-composable-file-mode branch August 26, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Composable file writes fatal when FS_CHMOD_FILE is undefined

1 participant