Hello,

Latest "improvements" on livedocs have broken it.

The problem is in handle_include(). It was modified so that it could solve
the problem with PCRE (for example).
However that implementation contains a bug. Let's see:

This 3 line long sql query never returns a result (at least on my machine):
 list($row) = sqlite_array_query($GLOBALS['idx'], "SELECT idents.id, lvl
from ents left join files on ents.value = files.filename left join idents on
files.fileid = idents.fileid left join toc on ents.entid=toc.docbook_id
where is_file=1 and ents.entid='$ref' limit 1");

so, $lvl isn't set.


Then we have:
 $filename = sqlite_single_query($GLOBALS['idx'], "SELECT value from ents
where entid='$ref' and is_file=1");

 $path = PHPDOC . DIRECTORY_SEPARATOR . $filename;

 if (!file_exists($path)) {
  $path = PHPDOC . DIRECTORY_SEPARATOR . $GLOBALS['lang'] .
DIRECTORY_SEPARATOR . $filename;
 }

The $filename returns for me the path to the file
('C:/cvs/phpdoc/en/reference/tidy/functions.xml' for example). So $path will
be:
C:\cvs\phpdoc\C:/cvs/phpdoc/en/reference/tidy/functions.xml. Why we need
that code to find the $path, when $path should be $filename?

So, the references pages aren't showing any functions.


Nuno

Reply via email to