Home
last modified time | relevance | path

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

/PHP-7.4/main/
H A DSAPI.c398 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()
531 if (SG(sapi_headers).mimetype) { in sapi_deactivate()
532 efree(SG(sapi_headers).mimetype); in sapi_deactivate()
533 SG(sapi_headers).mimetype = NULL; in sapi_deactivate()
576 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code()
756 if (SG(sapi_headers).http_status_line) { in sapi_header_op()
[all …]
H A DSAPI.h120 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.c1457 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/PHP-7.4/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.c318 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
324 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
343 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
345 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
983 SG(sapi_headers).http_response_code = 200; in init_request_info()
1252 SG(sapi_headers).http_response_code = 404; in init_request_info()
1799 SG(sapi_headers).http_response_code = 400; in main()
1899 SG(sapi_headers).http_response_code = 404; in main()
1907 SG(sapi_headers).http_response_code = 403; in main()
1923 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.4/sapi/litespeed/
H A Dlsapi_main.c379 int response_status = SG(sapi_headers).http_response_code; in sapi_lsapi_send_headers_like_cgi()
386 if (SG(sapi_headers).http_response_code != 200) in sapi_lsapi_send_headers_like_cgi()
393 if (SG(sapi_headers).http_status_line && in sapi_lsapi_send_headers_like_cgi()
395 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_lsapi_send_headers_like_cgi()
476 return sapi_lsapi_send_headers_like_cgi(sapi_headers); in sapi_lsapi_send_headers()
481 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers()
483 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
490 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers()
651 SG(sapi_headers).http_response_code = 200; in init_request_info()
1729 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/standard/
H A Dhead.c398 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION()
417 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION()
418 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION()
427 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION()
431 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c376 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
382 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
391 if ((s = strchr(SG(sapi_headers).http_status_line, ' '))) { in sapi_cgi_send_headers()
402 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
404 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
424 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers()
1195 SG(sapi_headers).http_response_code = 200;
1393 SG(sapi_headers).http_response_code = 404;
1944 SG(sapi_headers).http_response_code = 400;
2518 SG(sapi_headers).http_response_code = 403;
[all …]
/PHP-7.4/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()
507 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
/PHP-7.4/sapi/cli/
H A Dphp_cli_server.c592 static int sapi_cli_server_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_server_send_headers() argument
603 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
604 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
612 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
618 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
2107 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script()
2189 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2279 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2280 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2290 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c395 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
/PHP-7.4/ext/iconv/
H A Diconv.c390 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
391 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
392 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
394 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
395 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler()
397 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler()
411 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
/PHP-7.4/ext/mbstring/
H A Dmbstring.c2244 if (SG(sapi_headers).mimetype && in PHP_FUNCTION()
2247 SG(sapi_headers).mimetype, in PHP_FUNCTION()
2248 strlen(SG(sapi_headers).mimetype))) { in PHP_FUNCTION()
2249 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in PHP_FUNCTION()
2250 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
2252 mimetype = estrndup(SG(sapi_headers).mimetype,s-SG(sapi_headers).mimetype); in PHP_FUNCTION()
2255 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION()
2260 if (SG(sapi_headers).send_default_content_type || send_text_mimetype) { in PHP_FUNCTION()
2265 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg.c816 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()
/PHP-7.4/ext/soap/
H A Dsoap.c2113 _old_http_response_code = SG(sapi_headers).http_response_code;
2114 _old_http_status_line = SG(sapi_headers).http_status_line;
2214 SG(sapi_headers).http_status_line = NULL;
2220 if (SG(sapi_headers).http_status_line) {
2221 efree(SG(sapi_headers).http_status_line);
2223 SG(sapi_headers).http_status_line = _old_http_status_line;
2224 SG(sapi_headers).http_response_code = _old_http_response_code;
/PHP-7.4/ext/opcache/
H A DZendAccelerator.c4674 static int preload_send_headers(sapi_headers_struct *sapi_headers) in preload_send_headers() argument
4702 …der_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) = sa… in accel_finish_startup()
4703 int (*orig_send_headers)(sapi_headers_struct *sapi_headers TSRMLS_DC) = sapi_module.send_headers; in accel_finish_startup()
/PHP-7.4/ext/session/
H A Dsession.c1260 zend_llist *l = &SG(sapi_headers).headers; in php_session_remove_cookie()

Completed in 124 milliseconds