1--TEST-- 2Bug #78569 (proc_open() may require extra quoting) 3--SKIPIF-- 4<?php 5if (PHP_OS_FAMILY !== 'Windows') die('skip this test is for Windows platforms only'); 6?> 7--XFAIL-- 8Before PHP 8.0.0 we would need to add extra quotes. 9--FILE-- 10<?php 11// We are searching for the following line: 12// FIND ME 13$descriptorspec = array(['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']); 14$cmd = sprintf('"findstr" "/b" "/c:// FIND ME" "%s" 2>&1', __FILE__); 15$proc = proc_open($cmd, $descriptorspec, $pipes); 16fpassthru($pipes[1]); 17proc_close($proc); 18?> 19--EXPECT-- 20// FIND ME 21