Details
-
Type:
Docs: Problem
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.9.1
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Queue
-
Labels:None
-
Language:English
Description
Manual entry #42.2 contains incorrect example of creating new queue. Method create does not exists. createQueue method should be used instead of create
http://framework.zend.com/manual/en/zend.queue.example.html
// Create a new queue
$queue2 = $queue->create('queue2');
Correct code
// Create a new queue
$queue2 = $queue->createQueue('queue2');
Issue Links
| This issue is duplicated by: | ||||
| ZF-8552 | Issues with Zend_Queue example usage |
|
|
|
solved in SVN r17660 with fixing other 2 items too.
1)
NG $queue = Zend_Queue('Array', $options);
OK $queue = new Zend_Queue('Array', $options);
2)
NG $queue->delete('queue2');
OK $queue->deleteQueue('queue2');