ZF-10577: Zend_Controller_Request_Http::getHeader() returns false with empty header value

Issue Type: Bug Created: 2010-10-19T04:00:24.000+0000 Last Updated: 2010-10-25T07:16:55.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Robert Kummer (rok_de) Assignee: Marc Hodgins (mjh_ca) Tags: - Zend_Controller

Related issues: Attachments: - ZF-10577.patch


Using the Zend_Controller_Request_Http::getHeader($headerName) returns "false" if the given $headerName will be existing with an empty value.

Better solution: if (function_exists('apache_request_headers')) { $headers = apache_request_headers(); if ({color:red}isset{color}($headers[$header])) { return $headers[$header]; } [..]


Posted by Marc Hodgins (mjh_ca) on 2010-10-24T17:37:44.000+0000

Patch with unit test attached.

Posted by Matthew Weier O'Phinney (matthew) on 2010-10-25T07:16:50.000+0000

Patch applied to trunk and 1.11 release branch -- thanks!

Have you found an issue?

See the Overview section for more details.


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

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