--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(
        
=> array("pipe""r"),
        
=> array("pipe""w"),
        
=> array("pipe""w")
        );

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

proc_close($cat);

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

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