Issues

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

Issue Type: Bug Created: 2009-08-21T13:14:04.000+0000 Last Updated: 2009-08-27T12:22:16.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)

Reporter: Onno Lissenberg (orlissenberg) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Rest_Server

Related issues: - ZF-7594

Attachments:

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; 
            }

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2009-08-27T12:22:16.000+0000

Fixed in trunk and 1.9 release branch

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts