Home
last modified time | relevance | path

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

/php-src/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()
488 if (SG(sapi_headers).http_status_line) { in sapi_send_headers_free()
538 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy()
539 efree(SG(sapi_headers).mimetype); in sapi_deactivate_destroy()
540 SG(sapi_headers).mimetype = NULL; in sapi_deactivate_destroy()
589 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code()
767 if (SG(sapi_headers).http_status_line) { in sapi_header_op()
[all …]
H A DSAPI.h135 sapi_headers_struct sapi_headers; member
254 …ndler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers);
255 int (*send_headers)(sapi_headers_struct *sapi_headers);
H A Dmain.c1448 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/php-src/sapi/fpm/fpm/
H A Dfpm_log.c315 sapi_headers_struct *sapi_headers = &SG(sapi_headers); in fpm_log_write() local
318 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in fpm_log_write()
322 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
326 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
332 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
337 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in fpm_log_write()
394 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
508 if (SG(sapi_headers).http_response_code < 200 || SG(sapi_headers).http_response_code > 299) { in fpm_access_log_suppress()
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()
360 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers()
989 SG(sapi_headers).http_response_code = 200; in init_request_info()
1278 SG(sapi_headers).http_response_code = 404; in init_request_info()
1844 SG(sapi_headers).http_response_code = 404; in main()
1852 SG(sapi_headers).http_response_code = 403; in main()
1868 SG(sapi_headers).http_response_code = 403; in main()
[all …]
H A Dfpm_status.c163 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
195 SG(sapi_headers).http_response_code = 500; 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-src/sapi/litespeed/
H A Dlsapi_main.c370 int response_status = SG(sapi_headers).http_response_code; in sapi_lsapi_send_headers_like_cgi()
377 if (SG(sapi_headers).http_response_code != 200) in sapi_lsapi_send_headers_like_cgi()
384 if (SG(sapi_headers).http_status_line && in sapi_lsapi_send_headers_like_cgi()
386 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_lsapi_send_headers_like_cgi()
466 return sapi_lsapi_send_headers_like_cgi(sapi_headers); in sapi_lsapi_send_headers()
471 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers()
473 h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_lsapi_send_headers()
480 if (SG(sapi_headers).send_default_content_type) { in sapi_lsapi_send_headers()
639 SG(sapi_headers).http_response_code = 200; in init_request_info()
1684 if (!&SG(sapi_headers).headers) { in PHP_FUNCTION()
[all …]
/php-src/ext/standard/
H A Dhead.c350 …zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, retu… in PHP_FUNCTION()
380 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION()
381 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION()
390 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION()
394 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
/php-src/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()
1183 SG(sapi_headers).http_response_code = 200;
1381 SG(sapi_headers).http_response_code = 404;
1903 SG(sapi_headers).http_response_code = 400;
2486 SG(sapi_headers).http_response_code = 403;
[all …]
/php-src/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()
523 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
/php-src/sapi/cli/
H A Dphp_cli_server.c365 if (sapi_headers != NULL) { in append_essential_headers()
562 if (SG(sapi_headers).http_status_line) { in sapi_cli_server_send_headers()
563 smart_str_appends(&buffer, SG(sapi_headers).http_status_line); in sapi_cli_server_send_headers()
569 append_essential_headers(&buffer, client, 0, sapi_headers); in sapi_cli_server_send_headers()
571 h = (sapi_header_struct*)zend_llist_get_first_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
577 h = (sapi_header_struct*)zend_llist_get_next_ex(&sapi_headers->headers, &pos); in sapi_cli_server_send_headers()
2230 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2324 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2325 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2335 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
[all …]
H A Dphp_cli.c382 static int sapi_cli_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in sapi_cli_send_headers() argument
/php-src/ext/iconv/
H A Diconv.c310 if (SG(sapi_headers).mimetype && !strncasecmp(SG(sapi_headers).mimetype, "text/", 5)) { in php_iconv_output_handler()
311 if ((s = strchr(SG(sapi_headers).mimetype,';')) == NULL){ in php_iconv_output_handler()
312 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
314 mimetype = SG(sapi_headers).mimetype; in php_iconv_output_handler()
315 mimetype_len = (int)(s - SG(sapi_headers).mimetype); in php_iconv_output_handler()
317 } else if (SG(sapi_headers).send_default_content_type) { in php_iconv_output_handler()
331 SG(sapi_headers).send_default_content_type = 0; in php_iconv_output_handler()
/php-src/sapi/phpdbg/
H A Dphpdbg.c726 static int php_sapi_phpdbg_send_headers(sapi_headers_struct *sapi_headers) /* {{{ */ in php_sapi_phpdbg_send_headers() argument
1439 if (SG(sapi_headers).mimetype) { in main()
1440 efree(SG(sapi_headers).mimetype); in main()
1441 SG(sapi_headers).mimetype = NULL; in main()
/php-src/ext/mbstring/
H A Dmbstring.c1575 …if (SG(sapi_headers).mimetype && _php_mb_match_regex(MBSTRG(http_output_conv_mimetypes), SG(sapi_h… in PHP_FUNCTION()
1577 if ((s = strchr(SG(sapi_headers).mimetype, ';')) == NULL) { in PHP_FUNCTION()
1578 mimetype = estrdup(SG(sapi_headers).mimetype); in PHP_FUNCTION()
1580 mimetype = estrndup(SG(sapi_headers).mimetype, s - SG(sapi_headers).mimetype); in PHP_FUNCTION()
1583 } else if (SG(sapi_headers).send_default_content_type) { in PHP_FUNCTION()
1588 if (SG(sapi_headers).send_default_content_type || free_mimetype) { in PHP_FUNCTION()
1594 SG(sapi_headers).send_default_content_type = 0; in PHP_FUNCTION()
/php-src/ext/soap/
H A Dsoap.c1854 _old_http_response_code = SG(sapi_headers).http_response_code; in soap_real_error_handler()
1855 _old_http_status_line = SG(sapi_headers).http_status_line; in soap_real_error_handler()
1917 SG(sapi_headers).http_status_line = NULL; in soap_real_error_handler()
1923 if (SG(sapi_headers).http_status_line) { in soap_real_error_handler()
1924 efree(SG(sapi_headers).http_status_line); in soap_real_error_handler()
1926 SG(sapi_headers).http_status_line = _old_http_status_line; in soap_real_error_handler()
1927 SG(sapi_headers).http_response_code = _old_http_response_code; in soap_real_error_handler()
/php-src/ext/opcache/
H A DZendAccelerator.c4597 static int preload_send_headers(sapi_headers_struct *sapi_headers) argument
4615 …der_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) = sapi_module.…
4616 int (*orig_send_headers)(sapi_headers_struct *sapi_headers) = sapi_module.send_headers;
/php-src/ext/session/
H A Dsession.c1386 zend_llist *l = &SG(sapi_headers).headers; in php_session_remove_cookie()

Completed in 154 milliseconds