[php-src] PHP-8.4: Fix Windows quoting in proc_open tests (#24343)
| From: | Shivam Mathur via GitHub | Date: | Thu, 15 Oct 2026 10:19:10 +0000 |
| Subject: | [php-src] PHP-8.4: Fix Windows quoting in proc_open tests (#24343) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-142308@lists.php.net to get a copy of this message | ||
Author: Shivam Mathur (shivammathur)
Committer: GitHub (web-flow)
Pusher: shivammathur
Date: 2026-10-15T15:48:59+05:30
Commit: https://github.com/php/php-src/commit/9438a33946e2c742c098a9dc1bf88749158c43b5
Raw diff: https://github.com/php/php-src/commit/9438a33946e2c742c098a9dc1bf88749158c43b5.diff
Fix Windows quoting in proc_open tests (#24343)
Changed paths:
M ext/standard/tests/general_functions/proc_open_null.phpt
M ext/standard/tests/general_functions/proc_open_redirect.phpt
Diff:
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]));