1--TEST--
2proc_open
3--SKIPIF--
4<?php
5if (!is_executable("/bin/cat")) echo "skip";
6if (!function_exists("proc_open")) echo "skip proc_open() is not available";
7?>
8--FILE--
9<?php
10$ds = array(
11		0 => array("pipe", "r"),
12		1 => array("pipe", "w"),
13		2 => array("pipe", "w")
14		);
15
16$cat = proc_open(
17		"/bin/cat",
18		$ds,
19		$pipes
20		);
21
22proc_close($cat);
23
24echo "I didn't segfault!\n";
25
26?>
27--EXPECT--
28I didn't segfault!
29