]> git.mxchange.org Git - mailer.git/blobdiff - inc/rdf.class.php
Re-added, now the right ones
[mailer.git] / inc / rdf.class.php
index 36cda4dd0e26f5c797459455123bfc6a8856c232..51c32088214f37b849f06f5b595e4adc5f72578b 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-/* $Id: rdf.class.php,v 1.40 2003/07/06 20:33:58 sts Exp $ */
+/* $Id$ */
 
 //
 // +----------------------------------------------------------------------+
@@ -40,7 +40,8 @@
 * @package   rss
 * @copyright Copyright (c) 2001 fase4.com. All rights reserved.
 * @author    Stefan Saasen <s@fase4.com>
-* @version   1.7 ($Date: 2003/07/06 20:33:58 $) $Revision: 1.40 $
+* @author    Roland Haeder <webmaster@mxchange.org>
+* @version   1.7 ($Date$Revision: 856 $
 * @access    public
 */
 
@@ -1200,7 +1201,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 +1356,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) == "<?xml" || $isContent) {