Annotation of embedaddon/php/ext/standard/tests/general_functions/proc_open.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: proc_open
! 3: --SKIPIF--
! 4: <?php # vim:syn=php
! 5: if (!is_executable("/bin/cat")) echo "skip";
! 6: if (!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:
! 22: proc_close($cat);
! 23:
! 24: echo "I didn't segfault!\n";
! 25:
! 26: ?>
! 27: --EXPECT--
! 28: I didn't segfault!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>