Skip to content

php-in-php: gate Context string helpers on thin/init-phase (#20571) - #20572

Merged
PurHur merged 1 commit into
masterfrom
agent/runtime-php-context-standalone-bodies-defer-gate
Jul 18, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/runtime-php-context-standalone-bodies-defer-gate

Conversation

@PurHur

@PurHur PurHur commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

C / defer shrink: removed the last StreamIoRuntime::shouldDeferHeavyStreamIoEmitters call site from lib/JIT/Context.php (string-helper block). Observable init-phase skip unchanged.

Closes #20571

Test plan

  • vendor/bin/phpunit test/unit/ContextStandaloneBodiesRuntimeShrinkTest.php — OK (2 tests)
  • vendor/bin/phpunit test/unit/FileGetContentsRuntimeShrinkTest.php — OK
  • ExamplesHelloWorldAotRegressionTest Context/StreamIo assertion filters — OK
  • php script/bootstrap-inventory.php --check — OK 5679/5679
  • make bootstrap-selfhost-vm-driver-execute-probe — OK

Verification transcript

OK (2 tests, 6 assertions) ContextStandaloneBodiesRuntimeShrinkTest
OK (4 tests, 16 assertions) FileGetContentsRuntimeShrinkTest
OK (2 tests, 18 assertions) ExamplesHelloWorldAotRegressionTest filters
OK 5679/5679
bootstrap-selfhost-vm-driver-execute-probe: OK

Made with Cursor

Drop the last Context call site of StreamIoRuntime::shouldDeferHeavyStreamIoEmitters so NestedJIT string helpers use isThinStandaloneAotMain / isStandaloneInitPhase (peer #20553).

Co-authored-by: Cursor <cursoragent@cursor.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.

php-in-php: gate Context::ensureFullStandaloneBodies string helpers on isThinStandaloneAotMain / isStandaloneInitPhase (#1492)

1 participant