mirror of
https://github.com/php/php-src.git
synced 2024-10-22 16:57:05 +00:00
29 lines
425 B
PHP
29 lines
425 B
PHP
--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!
|