blob: 0d9894683a1c755458a112509c5892f3cffde532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?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);
}
}
|