Skip to content

Fix cold-build hello-world AOT verification on fresh helper cache (#32122) - #32125

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-32122-cold-build-check
Aug 18, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-32122-cold-build-check

Conversation

@PurHur

@PurHur PurHur commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • restore the canonical variadic snprintf prototype in WeakRefRegistryRuntime so standalone AOT modules stop poisoning the shared libc declaration table
  • reopen a valid insert block before TryCatchHelper falls back to ErrorRaise, which keeps nested helper compiles from emitting orphaned catchable-error calls
  • add focused unit guards for both regressions so the cold-build presenter keeps exercising the real hello-world path

Test plan

  • ./script/phpunit.sh --filter 'SnprintfRuntimeShrinkTest|TryCatchRuntimeShrinkTest'
    • OK (8 tests, 24 assertions)
  • ./script/docker-exec.sh -- bash -lc "tmp=\$(mktemp -d); printf '%s\n' '<?php echo \"hi\\n\";' > \"\$tmp/hello.php\"; php bin/compile.php -o \"\$tmp/hello.bin\" \"\$tmp/hello.php\" && \"\$tmp/hello.bin\""
    • output: hi
  • ./script/docker-exec.sh -- bash -lc 'script/cold-build-check.sh'
    • cold-build-check: ok — clean-checkout compile of hello world took 6s (budget 120s)
  • ./script/docker-exec.sh -- bash -lc './script/release-readiness.sh --json'
    • "user_release_ready": "yes"
    • "cold-build": "ok" in the gate list with clean-checkout compile of hello world took 6s (budget 120s)
  • ./script/ci-fast.sh
    • unrelated existing failure: check-init-miniwebapp-parity: drift in src/Router.php / templates/init-miniwebapp sync, outside this diff

Closes #32122.

Made with Cursor

…2122)

Restore the canonical snprintf prototype for WeakRefRegistry and reopen a valid insert block before catchable-error fallback raises, so standalone hello-world builds verify again in the release cold-build gate.

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.

Release v1.1.0: fix cold-build-check compile_failed on hello world (LLVM Module.php line 180; re-#24302)

1 participant