Declare getallheaders function if it doesn't exists (PHP runs as CGI)