index 75f97582845341c587ef9725a912a3e185a0e113..c082f4748821896eae03e8232dd6ddc278d7d326 100644 (file)
}
- private _is_timeout($start,$stop = microtime())
+ private function _is_timeout($start,$stop = 0)
{
+ if($stop == 0){
+ $stop = microtime();
+ }
$a = split("\ ",$start);
$b = split("\ ",$stop);
$secs = $b[1] - $a[1];
$msecs= $b[0] - $a[0];
$ret = (float) ($secs+ $msecs);
- return($ret => $this->timeout);
+ return($ret >= $this->timeout);
}