summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/proc_open_pipes.inc
blob: 576118ffd63cf16a0dcf42bb229412359d138389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

function create_sleep_script()
{
	$fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "proc_open_pipes_sleep.php";

	if (!file_exists($fname)) {
		file_put_contents($fname, "<?php\nsleep(1);\n");
	}

	return $fname;
}

function unlink_sleep_script()
{
	$fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "proc_open_pipes_sleep.php";

	if (file_exists($fname)) {
		unlink($fname);
	}
}