separate php_http_env_response and implement content encoding