1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/bug78569.phpt
T
Christoph M. Becker a21cdb88ac Merge branch 'PHP-7.4'
* PHP-7.4:
  Add test for bug #78569
2020-02-21 10:34:27 +01:00

19 lines
492 B
PHP

--TEST--
Bug #78569 (proc_open() may require extra quoting)
--SKIPIF--
<?php
if (PHP_OS_FAMILY !== 'Windows') die('skip this test is for Windows platforms only');
?>
--FILE--
<?php
// We are searching for the following line:
// FIND ME
$descriptorspec = array(['pipe', 'r'], ['pipe', 'w'], ['pipe', 'w']);
$cmd = sprintf('"findstr" "/b" "/c:// FIND ME" "%s" 2>&1', __FILE__);
$proc = proc_open($cmd, $descriptorspec, $pipes);
fpassthru($pipes[1]);
proc_close($proc);
?>
--EXPECT--
// FIND ME