[php-src] master: ext/sockets: run the AF_PACKET error test in isolation (#22773)

From: Date: Fri, 17 Jul 2026 02:07:30 +0000
Subject: [php-src] master: ext/sockets: run the AF_PACKET error test in isolation (#22773)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-140063@lists.php.net to get a copy of this message
Author: Ilia Alshanetsky (iliaal) Committer: GitHub (web-flow) Pusher: iliaal Date: 2026-07-16T22:07:27-04:00 Commit: https://github.com/php/php-src/commit/331916c910cc43f2c156545e80f02e45cb2700d7 Raw diff: https://github.com/php/php-src/commit/331916c910cc43f2c156545e80f02e45cb2700d7.diff ext/sockets: run the AF_PACKET error test in isolation (#22773) The no-data case binds an ETH_P_ALL packet socket to lo and asserts that a non-blocking recvfrom() finds nothing, which only holds while no other test puts a frame on loopback. run-tests spawns workers in parallel and the job runs as root, so any concurrent test that talks to localhost makes the socket capture a frame and recvfrom() returns data instead of failing. Observed on LINUX_X32_DEBUG_ZTS: bool(false) where bool(true) was expected. Closes GH-22773 Changed paths: M ext/sockets/tests/socket_sendto_recvfrom_afpacket_errors.phpt Diff: diff --git a/ext/sockets/tests/socket_sendto_recvfrom_afpacket_errors.phpt b/ext/sockets/tests/socket_sendto_recvfrom_afpacket_errors.phpt index 775a1381506c..a63c36c4f6b0 100644 --- a/ext/sockets/tests/socket_sendto_recvfrom_afpacket_errors.phpt +++ b/ext/sockets/tests/socket_sendto_recvfrom_afpacket_errors.phpt @@ -15,6 +15,8 @@ if (!function_exists("posix_getuid") || posix_getuid() != 0) { die('SKIP AF_PACKET requires root permissions.'); } ?> +--CONFLICTS-- +all --FILE-- <?php

« previous php.cvs (#140063) next »