Issues

ZF-8293: Setting Zend_Search_Lucene_Interface_MultiSearcher distributor callback does not work.

Issue Type: Bug Created: 2009-11-12T04:10:26.000+0000 Last Updated: 2009-12-14T06:04:30.000+0000 Status: Resolved Fix version(s): - 1.9.7 (11/Jan/10)

Reporter: Ralf Clau├čnitzer (zfissuetrackerralf) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Search_Lucene

Related issues: Attachments:

Description

Setting distributor callback cannot function because of a wrong if-statement in Zend_Search_Lucene_Interface_MultiSearcher.

<pre class="highlight">
--- /opt/ZendFramework-1.9.5/library/Zend/Search/Lucene/MultiSearcher.php   2009-07-22 20:05:45.000000000 +0200
+++ MultiSearcher.php   2009-11-12 13:08:41.000000000 +0100
@@ -795,8 +795,10 @@
      */
     public function setDocumentDistributorCallback($callback)
     {
-       if ($callback !== null  &&  !is_callable($callback))
-       $this->_documentDistributorCallBack = $callback;
+       if (($callback !== null) and (true === is_callable($callback)))
+   {
+           $this->_documentDistributorCallBack = $callback;
+   }
     }
 
     /**

Comments

Posted by Alexander Veremyev (alexander) on 2009-12-14T06:04:30.000+0000

Fixed.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts