Issues

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

Description

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]; } [..]

Comments

Patch with unit test attached.

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