ZF-6574: Searching with ? in conjunction with highlightMatches throws warning Wrong parameter count for array_merge() in Search\Lucene\Document\Html.php on line 400


When searching using ? as a placeholder e.x. "nic?s" using the highlightMatches Method throws a warning: Wrong parameter count for array_merge() in xxx\Search\Lucene\Document\Html.php on line 400

line 400 is: $wordsToHighlight = call_user_func_array('array_merge', $wordsToHighlightList);

My Fast-Fix: $wordsToHighlight=array(); if (count($wordsToHighlightList)>0) $wordsToHighlight = call_user_func_array('array_merge', $wordsToHighlightList);


Same thing also happens with * so it's all wildcard searches that hit this problem when used in conjunction with a term hilighting.

I can confirm that the fast-fix worked perfectly so my thanks for that.

gets duplicated and possibly fixed by ZF-7519

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.