import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-general_functions / bug39322.php
blob769ddb2ac40df47cb8b41e9de229c202a113dabb
1 <?php
2 $descriptors = array(
3 0 => array('pipe', 'r'),
4 1 => array('pipe', 'w'),
5 2 => array('pipe', 'w'));
7 $pipes = array();
9 $process = proc_open('/bin/sleep 120', $descriptors, $pipes);
11 proc_terminate($process, 9);
12 sleep(1); // wait a bit to let the process finish
13 var_dump(proc_get_status($process));
15 echo "Done!\n";