Home
last modified time | relevance | path

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

/PHP-7.1/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.h123 sapi_headers_struct sapi_headers; member
236 …ndler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers);
237 int (*send_headers)(sapi_headers_struct *sapi_headers);
H A Dmain.c1240 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/PHP-7.1/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.1/ext/standard/
H A Dhead.c293 …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.1/sapi/cgi/
H A Dcgi_main.c383 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
389 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
397 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) { in sapi_cgi_send_headers()
408 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
410 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
430 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers()
1196 SG(sapi_headers).http_response_code = 200;
1395 SG(sapi_headers).http_response_code = 404;
2003 SG(sapi_headers).http_response_code = 400;
2567 SG(sapi_headers).http_response_code = 403;
[all …]
/PHP-7.1/sapi/apache2handler/
H A Dsapi_apache2.c89 …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()
517 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
/PHP-7.1/sapi/litespeed/
H A Dlsapi_main.c339 static int sapi_lsapi_send_headers(sapi_headers_struct *sapi_headers) in sapi_lsapi_send_headers() argument
344 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers()
346 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
351 h = zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
353 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers()
512 SG(sapi_headers).http_response_code = 200; in init_request_info()
1483 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
1488 h = zend_llist_get_first_ex(&SG(sapi_headers).headers, &pos); in PHP_FUNCTION()
1505 h = zend_llist_get_next_ex(&SG(sapi_headers).headers, &pos); in PHP_FUNCTION()
/PHP-7.1/sapi/cli/
H A Dphp_cli_server.c534 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_server_send_headers() argument
545 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
546 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
554 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
560 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
2022 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script()
2105 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2196 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2197 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2207 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c412 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
/PHP-7.1/ext/iconv/
H A Diconv.c411 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.1/ext/mbstring/
H A Dmbstring.c2156 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2159 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2160 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2161 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2162 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2164 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2167 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION()
2172 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION()
2177 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
/PHP-7.1/sapi/phpdbg/
H A Dphpdbg.c844 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in php_sapi_phpdbg_send_headers() argument
1792 if (SG(sapi_headers).mimetype) { in main()
1793 efree(SG(sapi_headers).mimetype); in main()
1794 SG(sapi_headers).mimetype = NULL; in main()
/PHP-7.1/ext/soap/
H A Dsoap.c2136 _old_http_response_code = SG(sapi_headers).http_response_code;
2137 _old_http_status_line = SG(sapi_headers).http_status_line;
2252 SG(sapi_headers).http_status_line = NULL;
2258 if (SG(sapi_headers).http_status_line) {
2259 efree(SG(sapi_headers).http_status_line);
2261 SG(sapi_headers).http_status_line = _old_http_status_line;
2262 SG(sapi_headers).http_response_code = _old_http_response_code;
/PHP-7.1/ext/session/
H A Dsession.c1204 zend_llist *l = &SG(sapi_headers).headers;

Completed in 471 milliseconds