ZF-12067: Zend_Search_Lucene_Interface_MultiSearcher stored in wrong location
Description
This class is located in ./Zend/Search/Lucene/MultiSearcher.php but should be in ./Zend/Search/Lucene/Interface/MultiSearcher.php
(Alternatively, the class should be renamed to Zend_Search_Lucene_MultiSearcher)
Comments
Posted by Nicolas Matheu (azriel49) on 2010-09-15T02:42:32.000+0000
Still not resolved, it is very annoying !!!
Posted by David Rogers (al_the_x) on 2011-06-09T16:10:27.000+0000
Really the class just needs to be renamed, as it's not an interface but a concrete implementation of
Zend_Search_Lucene_Interface. Here's a patch:Posted by Adam Lundrigan (adamlundrigan) on 2012-05-12T02:54:33.000+0000
The suggested fix breaks backwards-compatibility because an end user may be directly {{require_once}}'ing {{Zend/Search/Lucene/MultiSearcher.php}} and expecting to get class {{Zend_Search_Lucene_Interface_MultiSearcher}}, which won't work any longer.
Attached patch implementing BC fix for this issue. However, we end up with two classes in a single file, which is technically against ZF coding standards. Is there a better way that i'm not thinking of?
Posted by Adam Lundrigan (adamlundrigan) on 2012-06-02T00:05:18.000+0000
Fixed in trunk (1.12.0): r24862