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--FILE-- 8<?php 9// We are searching for the following line: 10// FIND ME 11$descriptorspec = array(['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']); 12$cmd = sprintf('"findstr" "/b" "/c:// FIND ME" "%s" 2>&1', __FILE__); 13$proc = proc_open($cmd, $descriptorspec, $pipes); 14fpassthru($pipes[1]); 15proc_close($proc); 16?> 17--EXPECT-- 18// FIND ME 19