[php-src] master: ext/sockets: run the AF_PACKET error test in isolation (#22773)
Ilia Alshanetsky via GitHub <[email protected]>
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
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