From 95a3eb77c7458af3caad459f2ba16b138c189737 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 15 Oct 2026 14:14:54 +0530 Subject: [PATCH] Fix Windows quoting in proc_open tests --- ext/standard/tests/general_functions/proc_open_null.phpt | 2 +- ext/standard/tests/general_functions/proc_open_redirect.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/tests/general_functions/proc_open_null.phpt b/ext/standard/tests/general_functions/proc_open_null.phpt index f5ea603f04b8..000297204969 100644 --- a/ext/standard/tests/general_functions/proc_open_null.phpt +++ b/ext/standard/tests/general_functions/proc_open_null.phpt @@ -5,7 +5,7 @@ Null pipes in proc_open() $php = getenv('TEST_PHP_EXECUTABLE'); $args = getenv('TEST_PHP_EXTRA_ARGS'); -$cmd = "$php $args -r 'echo \"Test\"; fprintf(STDERR, \"Error\");'"; +$cmd = "$php $args -r \"echo 'Test'; fprintf(STDERR, 'Error');\""; $proc = proc_open($cmd, [1 => ['null'], 2 => ['pipe', 'w']], $pipes); var_dump($pipes); diff --git a/ext/standard/tests/general_functions/proc_open_redirect.phpt b/ext/standard/tests/general_functions/proc_open_redirect.phpt index c8d29e894776..e561a3841988 100644 --- a/ext/standard/tests/general_functions/proc_open_redirect.phpt +++ b/ext/standard/tests/general_functions/proc_open_redirect.phpt @@ -26,7 +26,7 @@ try { } echo "\nWith pipe:\n"; -$cmd = "$php $args -r 'echo \"Test\n\"; fprintf(STDERR, \"Error\");'"; +$cmd = "$php $args -r \"echo 'Test', chr(10); fprintf(STDERR, 'Error');\""; $proc = proc_open($cmd, [1 => ['pipe', 'w'], 2 => ['redirect', 1]], $pipes); var_dump($pipes); var_dump(stream_get_contents($pipes[1]));