Skip to content

php-in-php: move PregMatchUserScriptLlvm stubs to JitPregMatchKernel (#19399) - #19402

Merged
PurHur merged 1 commit into
masterfrom
agent/runtime-php-preg-match-kernel
Jul 16, 2026
Merged

php-in-php: move PregMatchUserScriptLlvm stubs to JitPregMatchKernel (#19399)#19402
PurHur merged 1 commit into
masterfrom
agent/runtime-php-preg-match-kernel

Conversation

@PurHur

@PurHur PurHur commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #19399

LOC

  • Deleted lib/JIT/Builtin/PregMatchUserScriptLlvm.php (~134 LOC from Builtin surface)
  • Added ext/standard/JitPregMatchKernel.php (same stubs, housed in ext/)

Verification

$ vendor/bin/phpunit test/unit/PregMatchUserScriptLlvmTest.php test/unit/PregMatchRuntimeShrinkTest.php test/unit/PregPrelinkDeferRuntimeTest.php
OK (3 tests, 12 assertions)

$ php script/bootstrap-inventory.php --check
OK 5030/5030

$ php script/check-selfhost-spine-coverage-sync.php
check-selfhost-spine-coverage-sync: OK (spine covers all 5030 inventory files)

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

$ make north-star5-verify-fast
north-star5-verify: OK (fast)

Test plan

  • Unit shrink / defer tests
  • Spine coverage sync (incl. socket_select)
  • Inventory check
  • VM driver execute probe
  • north-star5-verify-fast

Made with Cursor

…19399)

Deferred user-script AOT still cannot nested-compile PregJitHelper (#16075);
keep the thin preg_* stubs but house them in ext/standard so lib/JIT/Builtin
shrinks. Also add socket_select.php to the spine (trust gate after #19390).

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 03719c4 into master Jul 16, 2026
1 check failed
@PurHur
PurHur deleted the agent/runtime-php-preg-match-kernel branch July 16, 2026 02:26
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: move PregMatchUserScriptLlvm stubs → JitPregMatchKernel in ext/standard (#1492)

1 participant