You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stream_socket_pair() creates two connected stream endpoints (used for IPC, subprocess pipes, and tests). It is registered in Zend but missing from ext/standard/Module.php.
PHP path:StreamSocketPairJit emits __compiler_stream_socket_pair (libc socketpair + fdopen, registers both ends in phpc_stream_handles). JitStreamSocketPair wraps the returned hashtable as a PHP array of stream handles.
C shrink: 0 lines (no new runtime/ symbols).
Verification (green):
vendor/bin/phpunit --filter stream_socket_pair test/compliance/ → OK (6 tests, VM + JIT)
Activity
PurHur commentedon Jun 13, 2026
claim: PHP Compiler STD Lib — starting this run
PurHur commentedon Jun 13, 2026
Merged via #8316.
Verification
VM path uses `VmStreamSocketPairNative` (libc socketpair FFI). JIT/AOT `call()` lowering remains deferred.
Add stream_socket_pair() via libc socketpair FFI (#3437). (#8316)
PurHur commentedon Jun 13, 2026
claim: PHP Compiler STD Lib — starting this run (stream_socket_pair JIT/AOT lowering, phase 2 of #3437).
Add JIT/AOT lowering for stream_socket_pair() (#3437). (#8386)
PurHur commentedon Jun 13, 2026
Merged via #8386
PHP path:
StreamSocketPairJitemits__compiler_stream_socket_pair(libcsocketpair+fdopen, registers both ends inphpc_stream_handles).JitStreamSocketPairwraps the returned hashtable as a PHP array of stream handles.C shrink: 0 lines (no new
runtime/symbols).Verification (green):
vendor/bin/phpunit --filter stream_socket_pair test/compliance/→ OK (6 tests, VM + JIT)php bin/compile.php -l test/fixtures/aot/compile-only/stream_socket_pair_smoke.php→ exit 0docs/capabilities.md:stream_socket_pairyes/yes/yes