Commit 331916c910c for php.net
commit 331916c910cc43f2c156545e80f02e45cb2700d7
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date: Thu Jul 16 22:07:27 2026 -0400
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
diff --git a/ext/sockets/tests/socket_sendto_recvfrom_afpacket_errors.phpt b/ext/sockets/tests/socket_sendto_recvfrom_afpacket_errors.phpt
index 775a1381506..a63c36c4f6b 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 @@
die('SKIP AF_PACKET requires root permissions.');
}
?>
+--CONFLICTS--
+all
--FILE--
<?php