Using PHP version 4.3.0-pre2 the read_index function
doesn't return any valid index entries. It has a problem
reading the .MET file.
The following code does work. I don't know why the
original code has a problem - it seems OK to me, so I
wonder whether that's because of a bug (or change) in
this version of PHP. I couldn't find any reference to such
a bug in the PHP notes. I can't control what version of
PHP my host runs.
Hope this is helpful to someone. Any comments would
be welcome.
function read_index()
{
// fseek($this->meta_fp, $this->index_start,
SEEK_SET);
$fp=fopen(($this->dbname).".met","r");
fseek($fp, $this->index_start, SEEK_SET);
// Read in the index
$index = array();
for($i=0; $i<$this->records; ++$i)
$index[] = $this->read_int($fp);
fclose($fp);
return $index;
}
Logged In: YES
user_id=655127
yes,me too.
but it work well on PHP version 4.3.3rc1