summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-05-23 10:46:06 +0000
committerWez Furlong <wez@php.net>2002-05-23 10:46:06 +0000
commite202ad5c8b568811f988579b5d478de0e0765347 (patch)
tree52454149d4e29ee8c8215c7562279f3b4d8549b6
parent4fd00c9502cdb2e18065c2fcbf4b96e1b5d96094 (diff)
downloadphp-git-e202ad5c8b568811f988579b5d478de0e0765347.tar.gz
Add simple test case for proc_open
-rw-r--r--ext/standard/tests/general_functions/proc_open.phpt29
1 files changed, 29 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/proc_open.phpt b/ext/standard/tests/general_functions/proc_open.phpt
new file mode 100644
index 0000000000..af275fe6bb
--- /dev/null
+++ b/ext/standard/tests/general_functions/proc_open.phpt
@@ -0,0 +1,29 @@
+--TEST--
+proc_open
+--SKIPIF--
+<?php # vim:syn=php
+if (!is_executable("/bin/cat")) echo "skip";
+?>
+--POST--
+--GET--
+--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!