[codex] Raise embedded PHP memory limit#391
Merged
Merged
Conversation
Merged
adamziel
added a commit
that referenced
this pull request
May 19, 2026
## Release `v0.1.50` Version bump and release metadata update for `v0.1.50`. **Changelog draft:** * Raise embedded PHP memory limit ([#391](#391)) **Full changelog:** v0.1.49...release/v0.1.50 ## Next steps 1. **Review** the changes in this pull request. 2. **Push** any additional edits to this branch (`release/v0.1.50`). 3. **Merge** this pull request to publish `v0.1.50`. Merging will automatically build ForkPress binaries, create a GitHub release, and update the Homebrew formula. Co-authored-by: Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
Raises ForkPress's embedded PHP command default to
memory_limit=512M.This applies through
php_base_command(), so it covers branch boot smoke tests, MySQL import helpers, branch control helpers, and the PHP server launched byforkpress start.Rationale
A real remote clone booted far enough to load site plugins, then died in
otter-blocksduring the branch preview smoke test with PHP's default128Mmemory limit:That is not a missing-file thin clone issue. It is ForkPress running ordinary WordPress/plugin boot under too small a PHP memory budget.
Implementation
Adds a shared
FORKPRESS_PHP_MEMORY_LIMITconstant inforkpress-runtimeand passes it to all base PHP commands with:Testing instructions
FORKPRESS_RUNTIME_BUNDLE=/dev/null cargo test -p forkpress-runtime