/PHP-8.3/main/ |
H A D | SAPI.c | 398 SG(sapi_headers).http_status_line = NULL; in sapi_activate_headers_only() 399 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only() 440 SG(sapi_headers).http_status_line = NULL; in sapi_activate() 441 SG(sapi_headers).mimetype = NULL; in sapi_activate() 488 if (SG(sapi_headers).http_status_line) { in sapi_send_headers_free() 535 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy() 536 efree(SG(sapi_headers).mimetype); in sapi_deactivate_destroy() 537 SG(sapi_headers).mimetype = NULL; in sapi_deactivate_destroy() 586 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code() 764 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 | 1406 SG(sapi_headers).http_response_code == 200 in php_error_cb()
|
/PHP-8.3/sapi/fpm/fpm/ |
H A D | fpm_log.c | 319 sapi_headers_struct *sapi_headers = &SG(sapi_headers); in fpm_log_write() local 322 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in fpm_log_write() 326 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 330 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 336 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 341 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write() 398 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write() 512 if (SG(sapi_headers).http_response_code < 200 || SG(sapi_headers).http_response_code > 299) { in fpm_access_log_suppress()
|
H A D | fpm_main.c | 315 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers() 321 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers() 340 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers() 342 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers() 991 SG(sapi_headers).http_response_code = 200; in init_request_info() 1280 SG(sapi_headers).http_response_code = 404; in init_request_info() 1789 SG(sapi_headers).http_response_code = 400; in main() 1894 SG(sapi_headers).http_response_code = 404; in main() 1902 SG(sapi_headers).http_response_code = 403; in main() 1918 SG(sapi_headers).http_response_code = 403; in main() [all …]
|
H A D | fpm_status.c | 159 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request() 191 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 202 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 213 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
|
/PHP-8.3/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() 1688 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION() [all …]
|
/PHP-8.3/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() 380 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION() 381 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION() 390 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION() 394 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
|
/PHP-8.3/sapi/cgi/ |
H A D | cgi_main.c | 373 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers() 379 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() 1180 SG(sapi_headers).http_response_code = 200; 1378 SG(sapi_headers).http_response_code = 404; 1900 SG(sapi_headers).http_response_code = 400; 2473 SG(sapi_headers).http_response_code = 403; [all …]
|
/PHP-8.3/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() 305 r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush() 527 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
|
/PHP-8.3/sapi/cli/ |
H A D | php_cli_server.c | 365 if (sapi_headers != NULL) { in append_essential_headers() 562 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers() 563 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers() 569 append_essential_headers(&buffer, client, 0, sapi_headers); in sapi_cli_server_send_headers() 571 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers() 577 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers() 2216 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup() 2314 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch() 2315 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch() 2325 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch() [all …]
|
H A D | php_cli.c | 395 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
|
/PHP-8.3/ext/iconv/ |
H A D | iconv.c | 311 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler() 312 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler() 313 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 315 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler() 316 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler() 318 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler() 332 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
|
/PHP-8.3/sapi/phpdbg/ |
H A D | phpdbg.c | 725 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in php_sapi_phpdbg_send_headers() argument 1442 if (SG(sapi_headers).mimetype) { in main() 1443 efree(SG(sapi_headers).mimetype); in main() 1444 SG(sapi_headers).mimetype = NULL; in main()
|
/PHP-8.3/ext/mbstring/ |
H A D | mbstring.c | 1570 …if (SG(sapi_headers).mimetype && _php_mb_match_regex(MBSTRG(http_output_conv_mimetypes), SG(sapi_h… in PHP_FUNCTION() 1572 if ((s = strchr(SG(sapi_headers).mimetype, ';')) == NULL) { in PHP_FUNCTION() 1573 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION() 1575 mimetype = estrndup(SG(sapi_headers).mimetype, s - SG(sapi_headers).mimetype); in PHP_FUNCTION() 1578 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION() 1583 if (SG(sapi_headers).send_default_content_type || free_mimetype) { in PHP_FUNCTION() 1589 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
|
/PHP-8.3/ext/soap/ |
H A D | soap.c | 1737 _old_http_response_code = SG(sapi_headers).http_response_code; 1738 _old_http_status_line = SG(sapi_headers).http_status_line; 1800 SG(sapi_headers).http_status_line = NULL; 1806 if (SG(sapi_headers).http_status_line) { 1807 efree(SG(sapi_headers).http_status_line); 1809 SG(sapi_headers).http_status_line = _old_http_status_line; 1810 SG(sapi_headers).http_response_code = _old_http_response_code;
|
/PHP-8.3/ext/opcache/ |
H A D | ZendAccelerator.c | 4559 static int preload_send_headers(sapi_headers_struct *sapi_headers) argument 4577 …der_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) = sapi_module.… 4578 int (*orig_send_headers)(sapi_headers_struct *sapi_headers) = sapi_module.send_headers;
|
/PHP-8.3/ext/session/ |
H A D | session.c | 1278 zend_llist *l = &SG(sapi_headers).headers; in php_session_remove_cookie()
|