--- /dev/null
+<?php\r
+\r
+$desc = array(\r
+ 0 => array("pipe", "r"), // stdin is a pipe that the child will read from\r
+ 1 => array("pipe", "w"), // stdout is a pipe that the child will write to\r
+ 2 => array("pipe", "r") // stderr is a file to write to\r
+);\r
+\r
+$proc = proc_open("proctest.exe", $desc, $pipes);\r
+sleep(10);\r
+proc_terminate($proc);\r
+proc_close($proc);\r
+proc_terminate($proc);\r
+\r
+?>\r