Home
last modified time | relevance | path

Searched refs:sapi_headers (Results 1 – 17 of 17) sorted by path

/PHP-7.2/ext/iconv/
H A Diconv.c407 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
408 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
409 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
411 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
412 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler()
414 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler()
428 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
/PHP-7.2/ext/mbstring/
H A Dmbstring.c2178 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2181 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2182 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2183 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2184 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2186 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2189 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION()
2194 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION()
2199 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
/PHP-7.2/ext/session/
H A Dsession.c1260 zend_llist *l = &SG(sapi_headers).headers; in php_session_remove_cookie()
/PHP-7.2/ext/soap/
H A Dsoap.c2125 _old_http_response_code = SG(sapi_headers).http_response_code;
2126 _old_http_status_line = SG(sapi_headers).http_status_line;
2231 SG(sapi_headers).http_status_line = NULL;
2237 if (SG(sapi_headers).http_status_line) {
2238 efree(SG(sapi_headers).http_status_line);
2240 SG(sapi_headers).http_status_line = _old_http_status_line;
2241 SG(sapi_headers).http_response_code = _old_http_response_code;
/PHP-7.2/ext/standard/
H A Dhead.c312 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION()
331 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION()
332 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION()
341 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION()
345 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
/PHP-7.2/main/
H A DSAPI.c404 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()
494 if (SG(sapi_headers).http_status_line) { in sapi_send_headers_free()
537 if (SG(sapi_headers).mimetype) { in sapi_deactivate()
538 efree(SG(sapi_headers).mimetype); in sapi_deactivate()
539 SG(sapi_headers).mimetype = NULL; in sapi_deactivate()
582 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.h122 sapi_headers_struct sapi_headers; member
235 …ndler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers);
236 int (*send_headers)(sapi_headers_struct *sapi_headers);
H A Dmain.c1234 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/PHP-7.2/sapi/apache2handler/
H A Dsapi_apache2.c85 …handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) in php_apache_sapi_header_handler() argument
147 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers) in php_apache_sapi_send_headers() argument
150 const char *sline = SG(sapi_headers).http_status_line; in php_apache_sapi_send_headers()
152 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_send_headers()
298 r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush()
506 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
/PHP-7.2/sapi/cgi/
H A Dcgi_main.c387 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
393 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
401 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) { in sapi_cgi_send_headers()
412 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
414 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
434 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers()
1200 SG(sapi_headers).http_response_code = 200;
1399 SG(sapi_headers).http_response_code = 404;
1997 SG(sapi_headers).http_response_code = 400;
2566 SG(sapi_headers).http_response_code = 403;
[all …]
/PHP-7.2/sapi/cli/
H A Dphp_cli.c416 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
H A Dphp_cli_server.c533 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_server_send_headers() argument
544 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
545 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
553 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
559 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
1990 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script()
2073 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 …]
/PHP-7.2/sapi/fpm/fpm/
H A Dfpm_log.c299 sapi_headers_struct *sapi_headers = &SG(sapi_headers); in fpm_log_write() local
302 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in fpm_log_write()
306 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
310 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
316 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
321 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
378 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
H A Dfpm_main.c360 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
366 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
385 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
387 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
1045 SG(sapi_headers).http_response_code = 200;
1322 SG(sapi_headers).http_response_code = 404;
1836 SG(sapi_headers).http_response_code = 400;
1925 SG(sapi_headers).http_response_code = 404;
1933 SG(sapi_headers).http_response_code = 403;
1949 SG(sapi_headers).http_response_code = 403;
[all …]
H A Dfpm_status.c69 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
87 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
97 SG(sapi_headers).http_response_code = 503; in fpm_status_handle_request()
110 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
121 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
/PHP-7.2/sapi/litespeed/
H A Dlsapi_main.c397 int response_status = SG(sapi_headers).http_response_code; in sapi_lsapi_send_headers_like_cgi()
404 if (SG(sapi_headers).http_response_code != 200) in sapi_lsapi_send_headers_like_cgi()
411 if (SG(sapi_headers).http_status_line && in sapi_lsapi_send_headers_like_cgi()
413 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_lsapi_send_headers_like_cgi()
494 return sapi_lsapi_send_headers_like_cgi(sapi_headers); in sapi_lsapi_send_headers()
499 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers()
501 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
508 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers()
669 SG(sapi_headers).http_response_code = 200; in init_request_info()
1761 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
[all …]
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg.c840 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in php_sapi_phpdbg_send_headers() argument
1788 if (SG(sapi_headers).mimetype) { in main()
1789 efree(SG(sapi_headers).mimetype); in main()
1790 SG(sapi_headers).mimetype = NULL; in main()

Completed in 110 milliseconds