Skip to content

Stdlib: JIT stream_context_create() empty context (#1377, #1056) - #1863

Merged
PurHur merged 1 commit into
masterfrom
agent/stdlib-stream-debug-jit
May 25, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/stdlib-stream-debug-jit

Conversation

@PurHur

@PurHur PurHur commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Enable JIT/AOT lowering for stream_context_create() with no arguments by wiring stream_context_create::call() to JitStreamContextCreate (uses HashTableHelper::buildArrayFill for a stable empty packed hashtable).
  • Closes the last entry in docs/stdlib-jit-audit.md “Missing arg helpers” list.
  • VM path with options arrays unchanged; JIT with options still throws (deferred Stdlib: stream_context_create() — VM + LLVM JIT/AOT #1377).

Contributes to North Star 2 self-host (#1056 / #1492).

Test plan

  • vendor/bin/phpunit --filter stream_context_create (VM unit + JIT compliance stream_context_create_jit.phpt)
  • Docker: tar pipe + PHPUnit (Runforge harness)
  • Full ./script/ci-local.sh on merge host (LLVM phases)

Closes #1377

Made with Cursor

…1056)

Wire stream_context_create() to JitStreamContextCreate via HashTableHelper::buildArrayFill
(zero-arg), closing the last stdlib-jit-audit gap. VM options path unchanged; JIT options
remain deferred. Add stream_context_create_jit.phpt compliance test.

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.

Stdlib: stream_context_create() — VM + LLVM JIT/AOT

1 participant