Home
last modified time | relevance | path

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

/PHP-7.3/main/
H A DSAPI.c402 SG(sapi_headers).http_status_line = NULL; in sapi_activate_headers_only()
403 SG(sapi_headers).mimetype = NULL; in sapi_activate_headers_only()
444 SG(sapi_headers).http_status_line = NULL; in sapi_activate()
445 SG(sapi_headers).mimetype = NULL; in sapi_activate()
492 if (SG(sapi_headers).http_status_line) { in sapi_send_headers_free()
535 if (SG(sapi_headers).mimetype) { in sapi_deactivate()
536 efree(SG(sapi_headers).mimetype); in sapi_deactivate()
537 SG(sapi_headers).mimetype = NULL; in sapi_deactivate()
580 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code()
760 if (SG(sapi_headers).http_status_line) { in sapi_header_op()
[all …]
H A DSAPI.h120 sapi_headers_struct sapi_headers; member
234 …ndler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers);
235 int (*send_headers)(sapi_headers_struct *sapi_headers);
H A Dmain.c1398 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/PHP-7.3/sapi/litespeed/
H A Dlsapi_main.c386 int response_status = SG(sapi_headers).http_response_code; in sapi_lsapi_send_headers_like_cgi()
393 if (SG(sapi_headers).http_response_code != 200) in sapi_lsapi_send_headers_like_cgi()
400 if (SG(sapi_headers).http_status_line && in sapi_lsapi_send_headers_like_cgi()
402 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_lsapi_send_headers_like_cgi()
483 return sapi_lsapi_send_headers_like_cgi(sapi_headers); in sapi_lsapi_send_headers()
488 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers()
490 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
497 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers()
658 SG(sapi_headers).http_response_code = 200; in init_request_info()
1745 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
[all …]
/PHP-7.3/sapi/fpm/fpm/
H A Dfpm_log.c298 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 Dfpm_main.c325 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
331 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
350 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
352 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
989 SG(sapi_headers).http_response_code = 200; in init_request_info()
1260 SG(sapi_headers).http_response_code = 404; in init_request_info()
1810 SG(sapi_headers).http_response_code = 400; in main()
1910 SG(sapi_headers).http_response_code = 404; in main()
1918 SG(sapi_headers).http_response_code = 403; in main()
1934 SG(sapi_headers).http_response_code = 403; in main()
[all …]
H A Dfpm_status.c165 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
183 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
193 SG(sapi_headers).http_response_code = 503; in fpm_status_handle_request()
206 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
217 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
/PHP-7.3/ext/standard/
H A Dhead.c400 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION()
419 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION()
420 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION()
429 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION()
433 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
/PHP-7.3/sapi/cgi/
H A Dcgi_main.c384 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
390 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
399 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) { in sapi_cgi_send_headers()
410 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
412 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
432 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers()
1202 SG(sapi_headers).http_response_code = 200;
1400 SG(sapi_headers).http_response_code = 404;
1951 SG(sapi_headers).http_response_code = 400;
2523 SG(sapi_headers).http_response_code = 403;
[all …]
/PHP-7.3/sapi/apache2handler/
H A Dsapi_apache2.c83 …handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) in php_apache_sapi_header_handler() argument
145 php_apache_sapi_send_headers(sapi_headers_struct *sapi_headers) in php_apache_sapi_send_headers() argument
148 const char *sline = SG(sapi_headers).http_status_line; in php_apache_sapi_send_headers()
150 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_send_headers()
296 r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush()
504 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
/PHP-7.3/sapi/cli/
H A Dphp_cli_server.c537 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()
2001 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script()
2083 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2177 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2178 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2188 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c408 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
/PHP-7.3/ext/iconv/
H A Diconv.c405 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
406 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
407 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
409 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
410 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler()
412 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler()
426 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
/PHP-7.3/ext/mbstring/
H A Dmbstring.c2239 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2242 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2243 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2244 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2245 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2247 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2250 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION()
2255 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION()
2260 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
/PHP-7.3/sapi/phpdbg/
H A Dphpdbg.c834 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in php_sapi_phpdbg_send_headers() argument
1781 if (SG(sapi_headers).mimetype) { in main()
1782 efree(SG(sapi_headers).mimetype); in main()
1783 SG(sapi_headers).mimetype = NULL; in main()
/PHP-7.3/ext/soap/
H A Dsoap.c2105 _old_http_response_code = SG(sapi_headers).http_response_code;
2106 _old_http_status_line = SG(sapi_headers).http_status_line;
2211 SG(sapi_headers).http_status_line = NULL;
2217 if (SG(sapi_headers).http_status_line) {
2218 efree(SG(sapi_headers).http_status_line);
2220 SG(sapi_headers).http_status_line = _old_http_status_line;
2221 SG(sapi_headers).http_response_code = _old_http_response_code;
/PHP-7.3/ext/session/
H A Dsession.c1260 zend_llist *l = &SG(sapi_headers).headers; in php_session_remove_cookie()

Completed in 143 milliseconds