Hi, I noticed some strange (for me) behavior when setting up Zend_Search_Lucene_Document_Html.

I use the following code:

---
$client = new Zend_Http_Client();
$client->setConfig(array('timeout'=>30));
$client->setUri('http://www.example.com/');

$response_html = $client->request()->getBody();

$doc = Zend_Search_Lucene_Document_Html::loadHTML($response_html, true);
$index->addDocument($doc);

// the code continues without using the $index variable
---

and when I do not work with the $index later in the code, it returns "Fatal error: Exception thrown without a stack frame in Unknown on line 0" at the end. When I call $index->optimize() or even unset($index) the fatal error is not triggered.

Is this normal, am I missing something really obvious or is it my PHP settings that causes that?

Thanks,

JB

Reply via email to