1<?php
2
3function create_sleep_script()
4{
5	$fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "proc_open_pipes_sleep.php";
6
7	if (!file_exists($fname)) {
8		file_put_contents($fname, "<?php\nsleep(1);\n");
9	}
10
11	return $fname;
12}
13
14function unlink_sleep_script()
15{
16	$fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "proc_open_pipes_sleep.php";
17
18	if (file_exists($fname)) {
19		unlink($fname);
20	}
21}
22