/PHP-8.0/main/ |
H A D | SAPI.c | 392 SG(sapi_headers).http_status_line = NULL; in sapi_activate_headers_only() 393 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only() 434 SG(sapi_headers).http_status_line = NULL; in sapi_activate() 435 SG(sapi_headers).mimetype = NULL; in sapi_activate() 482 if (SG(sapi_headers).http_status_line) { in sapi_send_headers_free() 529 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy() 530 efree(SG(sapi_headers).mimetype); in sapi_deactivate_destroy() 531 SG(sapi_headers).mimetype = NULL; in sapi_deactivate_destroy() 580 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code() 758 if (SG(sapi_headers).http_status_line) { in sapi_header_op() [all …]
|
H A D | SAPI.h | 115 sapi_headers_struct sapi_headers; member 232 …ndler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers); 233 int (*send_headers)(sapi_headers_struct *sapi_headers);
|
H A D | main.c | 1377 SG(sapi_headers).http_response_code == 200 in php_error_cb()
|
/PHP-8.0/sapi/litespeed/ |
H A D | lsapi_main.c | 371 int response_status = SG(sapi_headers).http_response_code; in sapi_lsapi_send_headers_like_cgi() 378 if (SG(sapi_headers).http_response_code != 200) in sapi_lsapi_send_headers_like_cgi() 385 if (SG(sapi_headers).http_status_line && in sapi_lsapi_send_headers_like_cgi() 387 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_lsapi_send_headers_like_cgi() 467 return sapi_lsapi_send_headers_like_cgi(sapi_headers); in sapi_lsapi_send_headers() 472 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers() 474 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers() 481 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers() 640 SG(sapi_headers).http_response_code = 200; in init_request_info() 1698 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION() [all …]
|
/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_log.c | 298 sapi_headers_struct *sapi_headers = &SG(sapi_headers); in fpm_log_write() local 301 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in fpm_log_write() 305 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 309 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 315 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 320 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 377 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
|
H A D | fpm_main.c | 313 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers() 319 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers() 338 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers() 340 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers() 974 SG(sapi_headers).http_response_code = 200; in init_request_info() 1243 SG(sapi_headers).http_response_code = 404; in init_request_info() 1773 SG(sapi_headers).http_response_code = 400; in main() 1873 SG(sapi_headers).http_response_code = 404; in main() 1881 SG(sapi_headers).http_response_code = 403; in main() 1897 SG(sapi_headers).http_response_code = 403; in main() [all …]
|
H A D | fpm_status.c | 158 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request() 186 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 197 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 208 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
|
/PHP-8.0/ext/standard/ |
H A D | head.c | 350 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION() 368 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION() 369 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION() 378 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION() 382 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
|
/PHP-8.0/sapi/cgi/ |
H A D | cgi_main.c | 372 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers() 378 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers() 387 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) { in sapi_cgi_send_headers() 398 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers() 400 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers() 420 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers() 1182 SG(sapi_headers).http_response_code = 200; 1380 SG(sapi_headers).http_response_code = 404; 1915 SG(sapi_headers).http_response_code = 400; 2489 SG(sapi_headers).http_response_code = 403; [all …]
|
/PHP-8.0/sapi/apache2handler/ |
H A D | sapi_apache2.c | 87 …handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) in php_apache_sapi_header_handler() argument 149 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers) in php_apache_sapi_send_headers() argument 152 const char *sline = SG(sapi_headers).http_status_line; in php_apache_sapi_send_headers() 154 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_send_headers() 300 r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush() 511 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
|
/PHP-8.0/sapi/cli/ |
H A D | php_cli_server.c | 537 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_server_send_headers() argument 548 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers() 549 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers() 557 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers() 563 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers() 2047 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script() 2129 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup() 2217 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch() 2218 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch() 2228 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch() [all …]
|
H A D | php_cli.c | 391 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
|
/PHP-8.0/ext/iconv/ |
H A D | iconv.c | 303 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler() 304 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler() 305 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 307 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 308 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler() 310 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler() 324 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
|
/PHP-8.0/ext/mbstring/ |
H A D | mbstring.c | 1588 if (SG(sapi_headers).mimetype && in PHP_FUNCTION() 1591 SG(sapi_headers).mimetype, in PHP_FUNCTION() 1592 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION() 1593 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL) { in PHP_FUNCTION() 1594 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION() 1596 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION() 1599 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION() 1604 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION() 1609 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg.c | 772 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in php_sapi_phpdbg_send_headers() argument 1728 if (SG(sapi_headers).mimetype) { in main() 1729 efree(SG(sapi_headers).mimetype); in main() 1730 SG(sapi_headers).mimetype = NULL; in main()
|
/PHP-8.0/ext/soap/ |
H A D | soap.c | 1833 _old_http_response_code = SG(sapi_headers).http_response_code; 1834 _old_http_status_line = SG(sapi_headers).http_status_line; 1903 SG(sapi_headers).http_status_line = NULL; 1909 if (SG(sapi_headers).http_status_line) { 1910 efree(SG(sapi_headers).http_status_line); 1912 SG(sapi_headers).http_status_line = _old_http_status_line; 1913 SG(sapi_headers).http_response_code = _old_http_response_code;
|
/PHP-8.0/ext/opcache/ |
H A D | ZendAccelerator.c | 4787 static int preload_send_headers(sapi_headers_struct *sapi_headers) argument 4815 …der_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) = sapi_module.… 4816 int (*orig_send_headers)(sapi_headers_struct *sapi_headers) = sapi_module.send_headers;
|
/PHP-8.0/ext/session/ |
H A D | session.c | 1265 zend_llist *l = &SG(sapi_headers).headers; in php_session_remove_cookie()
|