[php-maint] Bug#755219: Bug#755219: php5: Roundcube fails after upgrading to 5.6.0~rc2+dfsg-3
Bernhard Schmidt
berni at birkenwald.de
Sun Jul 20 14:25:58 UTC 2014
Hi,
On 19.07.2014 01:00, Ondřej Surý wrote:
> Only thing that's broken right now is getallheaders() in php5-fpm,
> so there's a remote possibility that roundcube is using that...
>
> Anyway RC3 should be out soon and I'll fix getallheaders there, so
> it might help...
I think that is indeed the case. getallheaders() is used if it exists.
public static function request_header($name)
{
if (function_exists('getallheaders')) {
$hdrs = array_change_key_case(getallheaders(), CASE_UPPER);
$key = strtoupper($name);
}
else {
$key = 'HTTP_' . strtoupper(strtr($name, '-', '_'));
$hdrs = array_change_key_case($_SERVER, CASE_UPPER);
}
return $hdrs[$key];
}
Best Regards,
Bernhard
More information about the pkg-php-maint
mailing list