1--TEST--
2GH-12655 (proc_open(): Argument #2 ($descriptor_spec) must only contain arrays and streams [Descriptor item must be either an array or a File-Handle])
3--FILE--
4<?php
5
6$descriptor_spec = [
7    0 => [ "pipe", "r" ],  // stdin is a pipe that the child will read from
8    1 => [ "pipe", "w" ],  // stdout is a pipe that the child will write to
9    2 => [ "pipe", "w" ],  // stderr is a file to write to
10];
11
12foreach ( $descriptor_spec as $fd => &$d )
13{
14    // don't do anything, just the fact that we used "&$d" will sink the ship!
15}
16
17$proc = proc_open(PHP_BINARY, $descriptor_spec, $pipes);
18echo $proc === false ? "FAILED\n" : "SUCCEEDED\n";
19
20?>
21--EXPECT--
22SUCCEEDED
23