fix php-fpm segfaulting and corrupting fcgi headers