ZF-12385: Highlighter throws PHP warning when highlighting text without match

Issue Type: Bug Created: 2012-08-23T09:41:59.000+0000 Last Updated: 2012-08-23T09:41:59.000+0000 Status: Open Fix version(s): Reporter: Vojtěch Vondra (vojtechv) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: Attachments:


Reproduction code:

<pre class="highlight">
$query = Zend_Search_Lucene_Search_QueryParser::parse($phrase);
$highlighted = $query->htmlFragmentHighlightMatches($content);

When content is not matched by phrase, I recieve this PHP Warning:

Warning: Wrong parameter count for array_merge() in library/Zend/Search/Lucene/Document/Html.php on line 401

A simple example when $content is empty and $phrase is test


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.