Skip to content

Stdlib: stripos() native LLVM/JIT and AOT#382

Merged
PurHur merged 2 commits into
masterfrom
agent/stdlib-stripos
May 20, 2026
Merged

Stdlib: stripos() native LLVM/JIT and AOT#382
PurHur merged 2 commits into
masterfrom
agent/stdlib-stripos

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 20, 2026

Summary

  • Adds stripos() to ext/standard/ with VM implementation in VmString (ASCII case-insensitive byte search, same subset as strpos).
  • JIT/AOT lower through JitStrpos::find() using libc strcasestr (registered in Module::jitInit).
  • Compliance PHPT (stripos, stripos_jit_*) and AOT fixture stripos.phpt; capability matrix and bootstrap inventory refreshed.

Test plan

  • docker run … script/ci-local.sh (capability/inventory checks + VM compliance)
  • vendor/bin/phpunit --filter stripos test/compliance/ (VM: 3 tests OK)
  • AOT fixture included in AotTest suite (67 fixtures)

Advances phase-4 stdlib for web routing/header checks (#78).

Made with Cursor

PurHur and others added 2 commits May 20, 2026 16:27
VM uses ASCII case-insensitive byte search; JIT/AOT reuse JitStrpos with
libc strcasestr. Compliance and AOT PHPT fixtures included.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur merged commit dd64398 into master May 20, 2026
1 check passed
@PurHur PurHur deleted the agent/stdlib-stripos branch May 20, 2026 16:27
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