(This is the proper log message for r17778)
(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: abaeb2b3ba5a94ed391a9405ad7d63d0414021c9@17779 44c647ce-9c0f-0410-b52a-842ac1e357ba

inwebo/zf2,heiglandreas/zf2,echampet/zf2,dvsavenkov/zf2,echampet/zf2,enjoy2000/zf2,roko79/zf2,0livier/zf2,noopable/zf2,dntmartins/zf2,taogb/zf2,KarimBea/test,machnicki/zf2,ChrisSchreiber/zf2,levelfivehub/zf2,svycka/zf2,sasezaki/zf2,mikicaivosevic/zf2,samsonasik/zf2,roheim/zf2,Techlightenment/zf2,0x20h/zf2,krmcbride/zf2,Heshan-Sandamal/zf2,bourkhimehaytam/zf2,heiglandreas/zf2,echampet/zf2,mmauri04/zf2,stefanotorresi/zf2,taro-asahi/zf2,krmcbride/zf2,dvsavenkov/zf2,artpoplsh/zf2,bullandrock/zf2,DASPRiD/zf2,pepeam/zend,david-sann/zf2,felipemaksy/zf2,zendframework/zf2,sasezaki/zf2,ornicar/zf2,peterkokot/zf2,peterkokot/zf2,0livier/zf2,whitefire/zf2,nandadotexe/zf2,Techlightenment/zf2,dntmartins/zf2,heiglandreas/zf2,heiglandreas/zf2,vrkansagara/zf2,shitikovkirill/zf2,mpalourdio/zf2,olearys/zf2,campersau/zf2,ornicar/zf2,whitefire/zf2,webmozart/zf2,samsonasik/zf2,pembo210/zf2,Techlightenment/zf2,coolmic/zf2,Techlightenment/zf2,freax/zf2,0x20h/zf2,emilgeorgiev89/ZFTEST,desenvuno/zf2,huangchaolei55/firstSite,sntsikdar/zf2,0x20h/zf2,DASPRiD/zf2,prolic/zf2,dkemper/zf2,machnicki/zf2,krmcbride/zf2,bullandrock/zf2,bondvt04/zf2test,TheBestSoftInTheWorld/zf2,stefanotorresi/zf2,Techlightenment/zf2,whitefire/zf2,david-sann/zf2,keradus/zf2,0livier/zf2,bullandrock/zf2,guilherme-santos/zf2,heiglandreas/zf2,dntmartins/zf2,stefanotorresi/zf2,mmetayer/zf2,Brucewyh/zf2,MadCat34/zf2,svycka/zf2,AICIDNN/zf2,zf2timo/zf2,campersau/zf2,sasezaki/zf2,bourkhimehaytam/zf2,kanellov/zf2,Techlightenment/zf2,samsonasik/zf2,Sineth-N/zf2,awd-git/zf2,campersau/zf2,webmozart/zf2,ornicar/zf2,pepeam/zend,keradus/zf2,KarimBea/test,emilgeorgiev89/ZFTEST,samsonasik/zend-stdlib,walberjefferson/zf2,bondvt04/zf2test,dkarvounaris/zf2