Commit f619e66781d for php.net
commit f619e66781d85ad06cc847a0dd5776127a8359bc
Author: Weilin Du <weilindu@php.net>
Date: Sat Jun 27 12:44:25 2026 +0800
ext/snmp: Add XFAIL on several tests (#22476)
SNMP tests are likely to fail on Windows CI when network features are tested.
So I add all these XFAIL sections to those tests to make sure it don't bother
unrelated CI runs.
diff --git a/ext/snmp/tests/bug64124.phpt b/ext/snmp/tests/bug64124.phpt
index 4fbf80f0400..5e2c43dc6ad 100644
--- a/ext/snmp/tests/bug64124.phpt
+++ b/ext/snmp/tests/bug64124.phpt
@@ -13,6 +13,8 @@
die("skip no IPv6 support");
}
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/bug64159.phpt b/ext/snmp/tests/bug64159.phpt
index 622cb1ce019..1df12b70887 100644
--- a/ext/snmp/tests/bug64159.phpt
+++ b/ext/snmp/tests/bug64159.phpt
@@ -10,6 +10,8 @@
?>
--ENV--
MIBS=noneXistent
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/generic_timeout_error.phpt b/ext/snmp/tests/generic_timeout_error.phpt
index 6cad7e9901c..db0b4c52b89 100644
--- a/ext/snmp/tests/generic_timeout_error.phpt
+++ b/ext/snmp/tests/generic_timeout_error.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/ipv6.phpt b/ext/snmp/tests/ipv6.phpt
index 93274fd7054..e88c7bdb8af 100644
--- a/ext/snmp/tests/ipv6.phpt
+++ b/ext/snmp/tests/ipv6.phpt
@@ -13,6 +13,8 @@
die("skip no IPv6 support");
}
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp-object-errno-errstr.phpt b/ext/snmp/tests/snmp-object-errno-errstr.phpt
index d6757111b02..ae279cd4e65 100644
--- a/ext/snmp/tests/snmp-object-errno-errstr.phpt
+++ b/ext/snmp/tests/snmp-object-errno-errstr.phpt
@@ -9,6 +9,8 @@
require_once(__DIR__.'/skipif.inc');
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp-object.phpt b/ext/snmp/tests/snmp-object.phpt
index 13461675cc8..1a9ce63fc6c 100644
--- a/ext/snmp/tests/snmp-object.phpt
+++ b/ext/snmp/tests/snmp-object.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp2_get.phpt b/ext/snmp/tests/snmp2_get.phpt
index e2cd1ef1b45..1721493408a 100644
--- a/ext/snmp/tests/snmp2_get.phpt
+++ b/ext/snmp/tests/snmp2_get.phpt
@@ -9,6 +9,8 @@
require_once(__DIR__.'/skipif.inc');
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp2_getnext.phpt b/ext/snmp/tests/snmp2_getnext.phpt
index c428783b79f..ea73c52f77b 100644
--- a/ext/snmp/tests/snmp2_getnext.phpt
+++ b/ext/snmp/tests/snmp2_getnext.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp2_real_walk.phpt b/ext/snmp/tests/snmp2_real_walk.phpt
index 91c337f6d67..32c72ea3f92 100644
--- a/ext/snmp/tests/snmp2_real_walk.phpt
+++ b/ext/snmp/tests/snmp2_real_walk.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp2_set-nomib.phpt b/ext/snmp/tests/snmp2_set-nomib.phpt
index 4fbcc2098f7..171c2f2a50e 100644
--- a/ext/snmp/tests/snmp2_set-nomib.phpt
+++ b/ext/snmp/tests/snmp2_set-nomib.phpt
@@ -11,6 +11,8 @@
?>
--ENV--
MIBS=
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp2_set.phpt b/ext/snmp/tests/snmp2_set.phpt
index da94fe21f49..5782ac3b86b 100644
--- a/ext/snmp/tests/snmp2_set.phpt
+++ b/ext/snmp/tests/snmp2_set.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp2_walk.phpt b/ext/snmp/tests/snmp2_walk.phpt
index fcf14424ca0..362db1fa3cb 100644
--- a/ext/snmp/tests/snmp2_walk.phpt
+++ b/ext/snmp/tests/snmp2_walk.phpt
@@ -9,6 +9,8 @@
require_once(__DIR__.'/skipif.inc');
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp3-error.phpt b/ext/snmp/tests/snmp3-error.phpt
index 27cba5b4841..6463af87a3b 100644
--- a/ext/snmp/tests/snmp3-error.phpt
+++ b/ext/snmp/tests/snmp3-error.phpt
@@ -9,6 +9,8 @@
require_once(__DIR__.'/skipif.inc');
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp3.phpt b/ext/snmp/tests/snmp3.phpt
index 1d12a84f464..c689865bf05 100644
--- a/ext/snmp/tests/snmp3.phpt
+++ b/ext/snmp/tests/snmp3.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmp_getvalue.phpt b/ext/snmp/tests/snmp_getvalue.phpt
index 6b9326fa0cc..2c3bac57232 100644
--- a/ext/snmp/tests/snmp_getvalue.phpt
+++ b/ext/snmp/tests/snmp_getvalue.phpt
@@ -7,9 +7,10 @@
--SKIPIF--
<?php
require_once(__DIR__.'/skipif.inc');
-if (PHP_OS_FAMILY === "Windows") die("xfail fails on Windows for unknown reasons");
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmpget.phpt b/ext/snmp/tests/snmpget.phpt
index ea7924ed8e5..9e0d3854159 100644
--- a/ext/snmp/tests/snmpget.phpt
+++ b/ext/snmp/tests/snmpget.phpt
@@ -9,6 +9,8 @@
require_once(__DIR__.'/skipif.inc');
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmpgetnext.phpt b/ext/snmp/tests/snmpgetnext.phpt
index 995a4cc987f..a02dfcc7b55 100644
--- a/ext/snmp/tests/snmpgetnext.phpt
+++ b/ext/snmp/tests/snmpgetnext.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmprealwalk.phpt b/ext/snmp/tests/snmprealwalk.phpt
index 66f458dadff..0ccaf3635c4 100644
--- a/ext/snmp/tests/snmprealwalk.phpt
+++ b/ext/snmp/tests/snmprealwalk.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmpset-nomib.phpt b/ext/snmp/tests/snmpset-nomib.phpt
index e5b5bfb9f85..9a2c64a9aa0 100644
--- a/ext/snmp/tests/snmpset-nomib.phpt
+++ b/ext/snmp/tests/snmpset-nomib.phpt
@@ -11,6 +11,8 @@
?>
--ENV--
MIBS=
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmpset.phpt b/ext/snmp/tests/snmpset.phpt
index a4f89e78da9..02f3ca6693a 100644
--- a/ext/snmp/tests/snmpset.phpt
+++ b/ext/snmp/tests/snmpset.phpt
@@ -8,6 +8,8 @@
<?php
require_once(__DIR__.'/skipif.inc');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');
diff --git a/ext/snmp/tests/snmpwalk.phpt b/ext/snmp/tests/snmpwalk.phpt
index 61ef33a70a2..bc1e4c37385 100644
--- a/ext/snmp/tests/snmpwalk.phpt
+++ b/ext/snmp/tests/snmpwalk.phpt
@@ -9,6 +9,8 @@
require_once(__DIR__.'/skipif.inc');
if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
?>
+--XFAIL--
+SNMP tests might possibly fail on Windows
--FILE--
<?php
require_once(__DIR__.'/snmp_include.inc');