geallheaders php-fpm #62596

once again, getallheaders for php-fpm 

https://bugs.php.net/bug.php?id=62596
Imho "var_len + 1" is wrong here as in FPM request->env already contains the terminating char.
See http://lxr.php.net/xref/PHP_5_6/sapi/cgi/fastcgi.c#1480 vs. http://lxr.php.net/xref/PHP_5_6/sapi/fpm/fpm/fastcgi.c#1072

Subsequently the previous checks should be var_len == sizeof(....).

I've tested this on Apache/2.4.10 + mod_fastcgi and Apache/2.4.10 + mod_proxy_fcgi. In both environments var_dump shows a trailing random character for every header.