1--TEST--
2Error test for stream_context_set_options()
3--FILE--
4<?php
5$pipes = [];
6$description = array(
7   0 => array("pipe", "r"),
8   1 => array("pipe", "w"),
9   2 => array("pipe", "r")
10);
11
12$process = proc_open('nothing', $description, $pipes);
13
14try {
15    stream_context_set_options($process, []);
16} catch (TypeError $e) {
17    echo $e->getMessage();
18}
19?>
20--EXPECT--
21stream_context_set_options(): Argument #1 ($context) must be a valid stream/context
22