Skip to content

Stdlib: stream_socket_server Reflection untyped error outs (#28857) - #29255

Merged
PurHur merged 1 commit into
masterfrom
fix/28857-stream-socket-server-reflection
Aug 9, 2026
Merged

PurHur merged 1 commit into
masterfrom
fix/28857-stream-socket-server-reflection

Conversation

@PurHur

@PurHur PurHur commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #28857

Test plan

  • PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/issue_28857_stream_socket_server_reflection.php
  • vendor/bin/phpunit --filter "StreamSocketServerReflectionVMTest|testStreamSocketServerStubReturnAndErrorOutTypes"

Verification transcript

$ PHP_COMPILER_PROFILE=8.4 php bin/vm.php test/repro/issue_28857_stream_socket_server_reflection.php
address:string
error_code:none&?
error_message:none&?
flags:int?
context:none?
ret=none

$ vendor/bin/phpunit --filter "StreamSocketServerReflectionVMTest|testStreamSocketServerStubReturnAndErrorOutTypes"
OK (2 tests, 6 assertions)

php-src ref: ext/standard/streamsfuncs.stub.php. Not covered: full ci-fast.sh / AOT (Reflection metadata only).

Made with Cursor

Match php-src streamsfuncs.stub.php: clear bogus resource return and typed
by-ref error_code/error_message so Reflection matches stream_socket_client.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant