Zend Framework

Zend_Rest_Route has references to "$this->_request->getHeader", should prob. be "$request->getHeader", getting null reference!

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.1
  • Fix Version/s: 1.9.3
  • Component/s: Zend_Rest_Server
  • Labels:
    None

Description

line 163 - 171 from Zend_Rest_Route

// var_dump($this->_request); // prints NULL!!

if ($requestMethod != 'get') {
if ($request->getParam('_method')) { $values[$this->_actionKey] = strtolower($request->getParam('_method')); } elseif ( $this->_request->getHeader('X-HTTP-Method-Override') ) { $values[$this->_actionKey] = strtolower($this->_request->getHeader('X-HTTP-Method-Override')); } else { $values[$this->_actionKey] = $requestMethod; }

Issue Links

Activity

Hide
Matthew Weier O'Phinney added a comment -

Fixed in trunk and 1.9 release branch

Show
Matthew Weier O'Phinney added a comment - Fixed in trunk and 1.9 release branch

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: