Explorar el Código

(This is the proper log message for r17778)

Denis reported that receive(0) returned messages.

This bug is present in the Db & Array adapters.

This has been fixed in all adapters.

In Zend_Queue 2.0 we need to make a requirement that all messages must be 0 
or higher and negative numbers will throw an exception.

tests/Zend/Queue/Bugs/ZF-7650Test.php
* Test cases for receive(0);

library/Zend/Queue/Adapter/Activemq.php
library/Zend/Queue/Adapter/Array.php
library/Zend/Queue/Adapter/Memcacheq.php
library/Zend/Queue/Adapter/Db.php
* Updated code to put bulk of receiving code in if ($maxMessages > 0)




git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17779 44c647ce-9c0f-0410-b52a-842ac1e357ba
danlo hace 16 años
padre
commit
9b84116c99
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      tests/Zend/Queue/Bugs/ZF-7650Test.php

+ 1 - 0
tests/Zend/Queue/Bugs/ZF-7650Test.php

@@ -130,3 +130,4 @@ class Zend_Queue_QueueTest extends PHPUnit_Framework_TestCase
         $this->assertEquals(0, count($messages));
     }
 }
+