--TEST--
CLucene: IndexSearcher::search when closed.
--SKIPIF--
<?php

require_once('skipif.inc');

?>
--POST--
--GET--
--INI--
--FILE--
<?php

require_once('param.inc');

$searcher = new IndexSearcher($path, $field);
/* Close the searcher*/
$searcher->close();
$query = "mowgli";
try {
    $searcher->search("");
} catch (Exception $e) {
    var_dump($e->getMessage());
}

?>
--EXPECT--
string(33) "The IndexSearcher has been closed"
