Hi Jan,

Please let me know, what happens if you remove last slash from dirname?
-------
$index = new Zend_Search_Lucene('../../lucene/', true);
  =>
$index = new Zend_Search_Lucene('../../lucene', true);
-------

What is the result of:
------------
$dir = opendir('../../lucene/');
while ($file = readdir($dir)) {
    echo $file . "\n";
}
------------
and
------------
$dir = opendir('../../lucene');
while ($file = readdir($dir)) {
    echo $file . "\n";
}
------------
???


That also may be something wrong with directory permissions...

With best regards,
   Alexander  Veremyev.

Jan Pieper wrote:
I am using rev1290 and when I execute this:

<?php
/* ... */
echo "file_exists('../../lucene/') -> " . (file_exists('../../lucene/') ? 'exists' : 'does not exist');
$index = new Zend_Search_Lucene('../../lucene/', true);
/* ... */
?>

I´ll get this output:

file_exists('../../lucene/') -> exists

Warning: opendir(../../lucene/) [function.opendir]: failed to open dir: No such file or directory in /var/www/html/private/lib/Zend/Search/Lucene/Storage/Directory/Filesystem.php on line 129

Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/html/private/lib/Zend/Search/Lucene/Storage/Directory/Filesystem.php on line 130

The index will be created and I can use it but theses messages shouldn´t be there.

-- Jan



Reply via email to