Skip to content

php-in-php: VmSockets::atmark FFI-first, drop host socket_atmark preference (#7998) - #7999

Merged
PurHur merged 1 commit into
masterfrom
agent/runtime-php-socket-atmark-7998
Jun 11, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/runtime-php-socket-atmark-7998

Conversation

@PurHur

@PurHur PurHur commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

C runtime: 0 lines added/changed (PHP + libc FFI only).

php-src reference

Verification

docker info >/dev/null
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh && vendor/bin/phpunit --filter VmSocketsRuntimeShrinkTest'
PHPUnit 9.6.21 by Sebastian Bergmann and contributors.
...                                                                 3 / 3 (100%)
OK (3 tests, 8 assertions)

Closes #7998

Made with Cursor

…erence (#7998)

Prefer libc sockatmark(3) over Zend ext/sockets delegation when FFI is
available; socket_atmark() validates args before void return skip.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit f0fc821 into master Jun 11, 2026
@PurHur
PurHur deleted the agent/runtime-php-socket-atmark-7998 branch June 11, 2026 14:20
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: VmSockets::atmark — prefer libc sockatmark FFI, drop host socket_atmark() delegation (#6544 phase 2)

1 participant