From aafa6ea386fc7334e73a4e9ce60e940683116896 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 9 Dec 2024 12:13:35 +0100 Subject: [PATCH] Don't run proc_open_cmd.phpt in parallel with other tests This test puts a fake cmd.exe in the CWD and removes it only after the test has finished. We need to avoid that other tests are running while that fake cmd.exe is there, because they may use it instead of the proper cmd.exe. We also unlink the fake cmd.exe as soon as possible, regardless of the test result. Fixes GH-17098. Closes GH-17090. --- ext/standard/tests/general_functions/proc_open_cmd.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/standard/tests/general_functions/proc_open_cmd.phpt b/ext/standard/tests/general_functions/proc_open_cmd.phpt index 6c80871d47d..2dcc207bfe6 100644 --- a/ext/standard/tests/general_functions/proc_open_cmd.phpt +++ b/ext/standard/tests/general_functions/proc_open_cmd.phpt @@ -1,5 +1,7 @@ --TEST-- Harden against cmd.exe hijacking +--CONFLICTS-- +all --SKIPIF-- --EXPECTF-- resource(%d) of type (process)