- STATUS (*set_status)(php_http_env_response_t *r, long http_code);
- STATUS (*set_protocol_version)(php_http_env_response_t *r, php_http_version_t *v);
- STATUS (*set_header)(php_http_env_response_t *r, const char *fmt, ...);
- STATUS (*add_header)(php_http_env_response_t *r, const char *fmt, ...);
- STATUS (*del_header)(php_http_env_response_t *r, const char *header_str, size_t header_len);
- STATUS (*write)(php_http_env_response_t *r, const char *data_str, size_t data_len);
- STATUS (*flush)(php_http_env_response_t *r);
- STATUS (*finish)(php_http_env_response_t *r);
+ ZEND_RESULT_CODE (*set_status)(php_http_env_response_t *r, long http_code);
+ ZEND_RESULT_CODE (*set_protocol_version)(php_http_env_response_t *r, php_http_version_t *v);
+ ZEND_RESULT_CODE (*set_header)(php_http_env_response_t *r, const char *fmt, ...);
+ ZEND_RESULT_CODE (*add_header)(php_http_env_response_t *r, const char *fmt, ...);
+ ZEND_RESULT_CODE (*del_header)(php_http_env_response_t *r, const char *header_str, size_t header_len);
+ ZEND_RESULT_CODE (*write)(php_http_env_response_t *r, const char *data_str, size_t data_len);
+ ZEND_RESULT_CODE (*flush)(php_http_env_response_t *r);
+ ZEND_RESULT_CODE (*finish)(php_http_env_response_t *r);