From ad000a63e8a1b6aacbff5d7bd806abfe388c18eb Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 21 Feb 2020 10:30:51 +0100 Subject: Add test for bug #78569 --- ext/standard/tests/general_functions/bug78569.phpt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ext/standard/tests/general_functions/bug78569.phpt diff --git a/ext/standard/tests/general_functions/bug78569.phpt b/ext/standard/tests/general_functions/bug78569.phpt new file mode 100644 index 0000000000..70d8a995a2 --- /dev/null +++ b/ext/standard/tests/general_functions/bug78569.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #78569 (proc_open() may require extra quoting) +--SKIPIF-- + +--XFAIL-- +Before PHP 8.0.0 we would need to add extra quotes. +--FILE-- +&1', __FILE__); +$proc = proc_open($cmd, $descriptorspec, $pipes); +fpassthru($pipes[1]); +proc_close($proc); +?> +--EXPECT-- +// FIND ME -- cgit v1.2.1