/PHP-7.0/main/ |
H A D | SAPI.c | 404 SG(sapi_headers).http_status_line = NULL; in sapi_activate_headers_only() 405 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only() 446 SG(sapi_headers).http_status_line = NULL; in sapi_activate() 447 SG(sapi_headers).mimetype = NULL; in sapi_activate() 495 if (SG(sapi_headers).http_status_line) { in sapi_send_headers_free() 538 if (SG(sapi_headers).mimetype) { in sapi_deactivate() 539 efree(SG(sapi_headers).mimetype); in sapi_deactivate() 540 SG(sapi_headers).mimetype = NULL; in sapi_deactivate() 583 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code() 763 if (SG(sapi_headers).http_status_line) { in sapi_header_op() [all …]
|
H A D | SAPI.h | 124 sapi_headers_struct sapi_headers; member 237 …ndler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers); 238 int (*send_headers)(sapi_headers_struct *sapi_headers);
|
H A D | main.c | 1192 SG(sapi_headers).http_response_code == 200 in php_error_cb()
|
/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_log.c | 300 sapi_headers_struct *sapi_headers = &SG(sapi_headers); in fpm_log_write() local 303 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in fpm_log_write() 307 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 311 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 317 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 322 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 379 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
|
H A D | fpm_main.c | 359 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers() 365 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers() 384 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers() 386 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers() 1044 SG(sapi_headers).http_response_code = 200; 1321 SG(sapi_headers).http_response_code = 404; 1837 SG(sapi_headers).http_response_code = 400; 1926 SG(sapi_headers).http_response_code = 404; 1934 SG(sapi_headers).http_response_code = 403; 1950 SG(sapi_headers).http_response_code = 403; [all …]
|
H A D | fpm_status.c | 70 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request() 88 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 98 SG(sapi_headers).http_response_code = 503; in fpm_status_handle_request() 111 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 122 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
|
/PHP-7.0/ext/standard/ |
H A D | head.c | 293 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION() 311 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION() 312 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION() 321 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION() 325 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
|
/PHP-7.0/sapi/cgi/ |
H A D | cgi_main.c | 374 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers() 380 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers() 388 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) { in sapi_cgi_send_headers() 399 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers() 401 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers() 421 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers() 1139 SG(sapi_headers).http_response_code = 200; 1338 SG(sapi_headers).http_response_code = 404; 1921 SG(sapi_headers).http_response_code = 400; 2340 SG(sapi_headers).http_response_code = 403; [all …]
|
/PHP-7.0/sapi/apache2handler/ |
H A D | sapi_apache2.c | 89 …handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) in php_apache_sapi_header_handler() argument 151 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers) in php_apache_sapi_send_headers() argument 154 const char *sline = SG(sapi_headers).http_status_line; in php_apache_sapi_send_headers() 156 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_send_headers() 309 r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush() 483 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
|
/PHP-7.0/sapi/litespeed/ |
H A D | lsapi_main.c | 336 static int sapi_lsapi_send_headers(sapi_headers_struct *sapi_headers) in sapi_lsapi_send_headers() argument 341 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers() 343 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers() 348 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers() 350 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers() 474 SG(sapi_headers).http_response_code = 200; in init_request_info() 1462 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION() 1467 h = zend_llist_get_first_ex(&SG(sapi_headers).headers, &pos); in PHP_FUNCTION() 1484 h = zend_llist_get_next_ex(&SG(sapi_headers).headers, &pos); in PHP_FUNCTION()
|
/PHP-7.0/sapi/cli/ |
H A D | php_cli_server.c | 524 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_server_send_headers() argument 535 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers() 536 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers() 544 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers() 550 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers() 2004 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script() 2085 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup() 2164 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch() 2165 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch() 2175 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch() [all …]
|
H A D | php_cli.c | 411 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
|
/PHP-7.0/ext/iconv/ |
H A D | iconv.c | 411 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler() 412 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler() 413 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 415 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 416 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler() 418 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler() 432 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
|
/PHP-7.0/ext/mbstring/ |
H A D | mbstring.c | 2149 if (SG(sapi_headers).mimetype && in PHP_FUNCTION() 2152 SG(sapi_headers).mimetype, in PHP_FUNCTION() 2153 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION() 2154 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION() 2155 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION() 2157 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION() 2160 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION() 2165 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION() 2170 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
|
/PHP-7.0/ext/soap/ |
H A D | soap.c | 2140 _old_http_response_code = SG(sapi_headers).http_response_code; 2141 _old_http_status_line = SG(sapi_headers).http_status_line; 2196 SG(sapi_headers).http_status_line = NULL; 2202 if (SG(sapi_headers).http_status_line) { 2203 efree(SG(sapi_headers).http_status_line); 2205 SG(sapi_headers).http_status_line = _old_http_status_line; 2276 SG(sapi_headers).http_status_line = NULL; 2282 if (SG(sapi_headers).http_status_line) { 2283 efree(SG(sapi_headers).http_status_line); 2285 SG(sapi_headers).http_status_line = _old_http_status_line; [all …]
|
/PHP-7.0/sapi/phpdbg/ |
H A D | phpdbg.c | 809 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in php_sapi_phpdbg_send_headers() argument 1775 if (SG(sapi_headers).mimetype) { in main() 1776 efree(SG(sapi_headers).mimetype); in main() 1777 SG(sapi_headers).mimetype = NULL; in main()
|
/PHP-7.0/ext/session/ |
H A D | session.c | 1364 zend_llist *l = &SG(sapi_headers).headers;
|