Skip to content

Fix AOT link: restore parse_str delimited LLVM for multipart refresh (#1492)#18548

Merged
PurHur merged 1 commit into
masterfrom
agent/fix-multipart-parse-str-aot-link-lane-b
Jul 13, 2026
Merged

Fix AOT link: restore parse_str delimited LLVM for multipart refresh (#1492)#18548
PurHur merged 1 commit into
masterfrom
agent/fix-multipart-parse-str-aot-link-lane-b

Conversation

@PurHur

@PurHur PurHur commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

Refs #1492 (bootstrap gate). Follow-up: narrow or PHP-route delimited parse again once multipart no longer needs hand-LLVM subhelpers (#14217).

Verification

export PHP_COMPILER_LLVM_PATH="$PWD/.llvm" LD_LIBRARY_PATH="$PWD/.llvm"
./script/check-aot-build-smoke.sh
# check-aot-build-smoke: OK tier 1 (build + execute + VM parity)

php vendor/bin/phpunit --filter SuperglobalsBracketRuntimeStandaloneTest
# OK (4 tests, 13 assertions)

make bootstrap-selfhost-vm-driver-execute-probe
# bootstrap-selfhost-vm-driver-execute-probe: OK

Made with Cursor

…1492)

#18449 restored StringMultipartStandaloneLlvm which calls __phpc_parse_str_*
subhelpers, but #18466 had removed ParseStrUserScriptDelimitedJit. Re-wire
ensureSubhelpers in ParseStrRuntime::ensureUserScriptLinked so user-script
multipart/superglobal refresh links at AOT build time.

Verification: ./script/check-aot-build-smoke.sh
  php vendor/bin/phpunit --filter SuperglobalsBracketRuntimeStandaloneTest
Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit 019f38c into master Jul 13, 2026
@PurHur PurHur deleted the agent/fix-multipart-parse-str-aot-link-lane-b branch July 13, 2026 08:20
PurHur added a commit that referenced this pull request Jul 13, 2026
Add 12 missing require_once entries to compiler_lib_spine_smoke so Phase A
inventory (4769/4769) matches the vm.php closure after #18541/#18547/#18449/#18548.

Closes #18550

Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur added a commit that referenced this pull request Jul 13, 2026
…18558)

Add 12 missing require_once entries to compiler_lib_spine_smoke so Phase A
inventory (4769/4769) matches the vm.php closure after #18541/#18547/#18449/#18548.

Closes #18550

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur added a commit that referenced this pull request Jul 13, 2026
…untime PHP (#18643) (#18645)

#18548 restored ~1052 LOC hand-LLVM delimited parse subhelpers for
StringMultipartStandaloneLlvm; #18615 routes multipart through
MultipartNativeJitHelper + ParseStrNativeJitHelper PHP instead.

Verification:
- php vendor/bin/phpunit test/unit/ParseStrRuntimeShrinkTest.php → OK (13)
- php vendor/bin/phpunit test/unit/SuperglobalRefreshRuntimeShrinkTest.php → OK
- php vendor/bin/phpunit test/unit/JIT/SuperglobalsBracketRuntimeStandaloneTest.php → OK
- php script/check-selfhost-spine-coverage-sync.php → OK
- make bootstrap-selfhost-vm-driver-execute-probe → OK

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
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.

1 participant