Zend Framework

Incorrect function name in the #42.2 manual entry

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major 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

Activity

Hide
Satoru Yoshida added a comment -

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');

Show
Satoru Yoshida added a comment - 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');

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: