From 59b9211105f5eccdfc37b2e6fefa4118559ff018 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 16 Jul 2026 13:30:50 -0400 Subject: [PATCH] ext/sockets: run the AF_PACKET error test in isolation 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 --- ext/sockets/tests/socket_sendto_recvfrom_afpacket_errors.phpt | 2 ++ 1 file changed, 2 insertions(+) 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--