Skip to content

php-in-php: lazy StringGetenv/All from ensureFullStandaloneBodies (#35127) - #35128

Merged
PurHur merged 1 commit into
masterfrom
fix/35127-lazy-getenv-ensurefull
Aug 26, 2026
Merged

php-in-php: lazy StringGetenv/All from ensureFullStandaloneBodies (#35127)#35128
PurHur merged 1 commit into
masterfrom
fix/35127-lazy-getenv-ensurefull

Conversation

@PurHur

@PurHur PurHur commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

php-src: ext/standard/basic_functions.czif_getenv.

Test plan

  • ./script/aot-smoke.sh8 passed, 0 failed
  • ./script/phpunit.sh --filter 'ContextFullStandaloneLazyGetenvShrinkTest|TypeDeadGetenvAbiRuntimeShrinkTest|StringGetenvRuntimeStandaloneTest|StringGetenvAllRuntimeStandaloneTest|ContextFullStandaloneLazyRandomBytesShrinkTest'OK (15 tests, 68 assertions)
  • ./script/docker-exec.sh -- bash -lc 'php bin/compile.php -o /tmp/hw.bin -r "echo \"hi\n\";" && /tmp/hw.bin'hi
  • AOT getenv('PATH') + zero-arg getenv() still match Zend (bool(true) / bool(true))

Made with Cursor

…5127)

Drop always-on NestedJIT of __compiler_getenv / __compiler_getenv_all during
full standalone init so thin hello-world avoids getenv.1 mint (#32122); JitEnv
already ensureLinked before lookup.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 6cb822f into master Aug 26, 2026
1 check failed
@PurHur
PurHur deleted the fix/35127-lazy-getenv-ensurefull branch August 26, 2026 13:45
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 Context ensureFullStandaloneBodies always-on StringGetenv/StringGetenvAll — lazy at JitEnv (ext/standard/basic_functions.c)

1 participant