id = $id; $this->durations = $durations; $this->sleep = $sleep; } public function run() { $name = 'example4/files/tmp_'.$this->id.'.txt'; $size = 0; for ($i=0; $i<=$this->durations; $i++) { $size += file_put_contents($name, $this->txt, FILE_APPEND | LOCK_EX); } file_get_contents($name); $x = exp(asin(atan2($size, microtime(true)))); sleep($this->sleep); $y = sqrt(acosh(atan2($x, microtime(true)))); if ($x == $y) { $this->setMessage('impossible...'); return false; } unlink($name); return true; } } ?>