Home
last modified time | relevance | path

Searched refs:sapi_headers (Results 1 – 18 of 18) sorted by relevance

/PHP-8.1/main/
H A DSAPI.c396 SG(sapi_headers).http_status_line = NULL; in sapi_activate_headers_only()
397 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
438 SG(sapi_headers).http_status_line = NULL; in sapi_activate()
439 SG(sapi_headers).mimetype = NULL; in sapi_activate()
486 if (SG(sapi_headers).http_status_line) { in sapi_send_headers_free()
533 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy()
534 efree(SG(sapi_headers).mimetype); in sapi_deactivate_destroy()
535 SG(sapi_headers).mimetype = NULL; in sapi_deactivate_destroy()
584 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code()
762 if (SG(sapi_headers).http_status_line) { in sapi_header_op()
[all …]
H A DSAPI.h115 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 Dmain.c1377 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/PHP-8.1/sapi/litespeed/
H A Dlsapi_main.c371 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.1/sapi/fpm/fpm/
H A Dfpm_log.c301 sapi_headers_struct *sapi_headers = &SG(sapi_headers); in fpm_log_write() local
304 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in fpm_log_write()
308 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
312 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
318 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
323 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
380 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
H A Dfpm_main.c313 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()
1263 SG(sapi_headers).http_response_code = 404; in init_request_info()
1792 SG(sapi_headers).http_response_code = 400; in main()
1895 SG(sapi_headers).http_response_code = 404; in main()
1903 SG(sapi_headers).http_response_code = 403; in main()
1919 SG(sapi_headers).http_response_code = 403; in main()
[all …]
H A Dfpm_status.c160 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
190 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
201 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
212 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
/PHP-8.1/ext/standard/
H A Dhead.c351 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION()
369 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION()
370 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION()
379 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION()
383 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
/PHP-8.1/sapi/cgi/
H A Dcgi_main.c372 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;
2478 SG(sapi_headers).http_response_code = 403;
[all …]
/PHP-8.1/sapi/apache2handler/
H A Dsapi_apache2.c87 …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()
516 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
/PHP-8.1/sapi/cli/
H A Dphp_cli_server.c357 if (sapi_headers != NULL) { in append_essential_headers()
563 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
564 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
570 append_essential_headers(&buffer, client, 0, sapi_headers); in sapi_cli_server_send_headers()
572 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
578 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
2144 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2231 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2232 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2242 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c394 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
/PHP-8.1/ext/iconv/
H A Diconv.c311 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.1/ext/mbstring/
H A Dmbstring.c1579 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
1582 SG(sapi_headers).mimetype, in PHP_FUNCTION()
1583 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
1584 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL) { in PHP_FUNCTION()
1585 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
1587 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
1590 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION()
1595 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION()
1600 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg.c723 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in php_sapi_phpdbg_send_headers() argument
1480 if (SG(sapi_headers).mimetype) { in main()
1481 efree(SG(sapi_headers).mimetype); in main()
1482 SG(sapi_headers).mimetype = NULL; in main()
/PHP-8.1/ext/soap/
H A Dsoap.c1783 _old_http_response_code = SG(sapi_headers).http_response_code;
1784 _old_http_status_line = SG(sapi_headers).http_status_line;
1846 SG(sapi_headers).http_status_line = NULL;
1852 if (SG(sapi_headers).http_status_line) {
1853 efree(SG(sapi_headers).http_status_line);
1855 SG(sapi_headers).http_status_line = _old_http_status_line;
1856 SG(sapi_headers).http_response_code = _old_http_response_code;
/PHP-8.1/ext/opcache/
H A DZendAccelerator.c4621 static int preload_send_headers(sapi_headers_struct *sapi_headers) argument
4649 …der_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) = sapi_module.…
4650 int (*orig_send_headers)(sapi_headers_struct *sapi_headers) = sapi_module.send_headers;
/PHP-8.1/ext/session/
H A Dsession.c1266 zend_llist *l = &SG(sapi_headers).headers; in php_session_remove_cookie()

Completed in 161 milliseconds