X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Frdf.class.php;h=477925a21e7ad0ef3df4062ba09818cd813765b1;hb=4bbd0f6ac8e11a702e000ffdfbd868a4e8a06ba3;hp=36cda4dd0e26f5c797459455123bfc6a8856c232;hpb=f4ef7580792a9e424e5456369f40c75a29dbfead;p=mailer.git diff --git a/inc/rdf.class.php b/inc/rdf.class.php index 36cda4dd0e..477925a21e 100644 --- a/inc/rdf.class.php +++ b/inc/rdf.class.php @@ -1200,7 +1200,7 @@ class fase4_rdf { function _garbage_collection() { srand((double) microtime() * 1000000); - if (rand(1, 100) <= $this->gc_probability) { + if (mt_rand(1, 100) <= $this->gc_probability) { $dir = dir($this->_cache_dir); while($file=$dir->read()) { if (is_file($dir->path.$file) && substr($file, -6, 6) != ".cache" && substr($file, -4, 4) != ".log" && filemtime($dir->path.$file) <= time() - $this->_refresh ) { @@ -1355,6 +1355,7 @@ class fase4_rdf { fputs($fp, $request); $reply = ""; $isContent = false; $dummy = ""; // Read reply + $i=0; while ( !feof($fp) ) { $read = trim(fgets($fp, 4096)); if (substr($read, 0, 5) == "