summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/proc_open.phpt
blob: ecf8d8ad79e8697d2064d491eb1a8734f3621939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
proc_open
--SKIPIF--
<?php # vim:syn=php
if (!is_executable("/bin/cat")) echo "skip";
if (!function_exists("proc_open")) echo "skip proc_open() is not available";
?>
--FILE--
<?php
$ds = array(
		0 => array("pipe", "r"),
		1 => array("pipe", "w"),
		2 => array("pipe", "w")
		);

$cat = proc_open(
		"/bin/cat",
		$ds,
		$pipes
		);

proc_close($cat);

echo "I didn't segfault!\n";

?>
--EXPECT--
I didn't segfault!