Commit 9438a33946e for php
commit 9438a33946e2c742c098a9dc1bf88749158c43b5
Author: Shivam Mathur <shivam_jpr@hotmail.com>
Date: Thu Oct 15 15:48:59 2026 +0530
Fix Windows quoting in proc_open tests (#24343)
diff --git a/ext/standard/tests/general_functions/proc_open_null.phpt b/ext/standard/tests/general_functions/proc_open_null.phpt
index f5ea603f04b..00029720496 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 @@
$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 c8d29e89477..e561a384198 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 @@
}
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]));