Login   Register  
PHP Classes
elePHPant
Icontem

logs index

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP SVN Client  >  All threads  >  logs index  >  (Un) Subscribe thread alerts  
Subject:logs index
Summary:wrong range for logs index
Messages:1
Author:LudoO0d0a
Date:2009-01-07 10:28:35
 

  1. logs index   Reply  
Picture of LudoO0d0a
LudoO0d0a
2009-01-07 10:28:35
Hi,

Great job for this class.

There is a bug in logs retrieving :

You get n+1 log to obtain the next begin tag to successfully parse all items but when you get all items (until last), you can't get last+1 item.

Also failed using end = -1 (wrong range is getting back);

So algortihm is wrong, and here is my fix :

Remove n+1 operation:
$vend++;
and associated condition
&& $tmp1++ > 0

just add this after parsing loop
if ( count($tmp) > 0) {
$logs[] = $tmp;
}

Ps : getDirectoryFiles failed using googlecode...

LudoO