Skip to content

php-in-php: gate JitEnv putenv thin AOT on isThinStandaloneAotMain (#20499) - #20500

Merged
PurHur merged 1 commit into
masterfrom
agent/runtime-php-putenv-thin-aot
Jul 18, 2026
Merged

php-in-php: gate JitEnv putenv thin AOT on isThinStandaloneAotMain (#20499)#20500
PurHur merged 1 commit into
masterfrom
agent/runtime-php-putenv-thin-aot

Conversation

@PurHur

@PurHur PurHur commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #20499

Lines removed / shrunk

  • ext/standard/JitEnv.php: removed use StreamIoRuntime + 2 shouldDeferHeavyStreamIoEmitters() call sites (replaced with isThinStandaloneAotMain()).
  • No new C runtime; PHP defer-gate shrink only.

php-src reference

  • ext/standard/basic_functions.czif_putenv / zif_getenv

Test plan

  • vendor/bin/phpunit test/unit/PutenvRuntimeShrinkTest.php — OK (2 tests)
  • vendor/bin/phpunit test/unit/GetenvJitRuntimeShrinkTest.php — OK
  • vendor/bin/phpunit test/unit/EnvLocalRuntimeShrinkTest.php — OK
  • make bootstrap-selfhost-vm-driver-execute-probe — OK

Verification transcript

OK (2 tests, 8 assertions)   # PutenvRuntimeShrinkTest
OK (3 tests, 22 assertions)  # GetenvJitRuntimeShrinkTest
OK (6 tests, 38 assertions)  # EnvLocalRuntimeShrinkTest
bootstrap-selfhost-vm-driver-execute-probe: OK /compiler/build/selfhost-lib-spine-smoke

Made with Cursor

…20499)

Drop StreamIo defer-bag gating so inventory/M3 emit can NestedJIT GetenvJitHelper::putenv; keep libc-only for thin standalone (#17316).

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: drop shouldDeferHeavyStreamIoEmitters from JitEnv putenv — thin via isThinStandaloneAotMain (#1492)

1 participant