Skip to content

[codex] Raise embedded PHP memory limit#391

Merged
adamziel merged 1 commit into
trunkfrom
codex/php-runtime-memory-limit
May 19, 2026
Merged

[codex] Raise embedded PHP memory limit#391
adamziel merged 1 commit into
trunkfrom
codex/php-runtime-memory-limit

Conversation

@adamziel
Copy link
Copy Markdown
Contributor

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 by forkpress start.

Rationale

A real remote clone booted far enough to load site plugins, then died in otter-blocks during the branch preview smoke test with PHP's default 128M memory limit:

Allowed memory size of 134217728 bytes exhausted ... otter-blocks/vendor/tubalmartin/cssmin/src/Minifier.php

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_LIMIT constant in forkpress-runtime and passes it to all base PHP commands with:

-d memory_limit=512M

Testing instructions

FORKPRESS_RUNTIME_BUNDLE=/dev/null cargo test -p forkpress-runtime

@adamziel adamziel merged commit 31723cc into trunk May 19, 2026
2 checks passed
@adamziel adamziel deleted the codex/php-runtime-memory-limit branch May 19, 2026 15:55
@adamziel adamziel mentioned this pull request May 19, 2026
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>
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.

2 participants