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()
535 if (SG(sapi_headers).mimetype) { in sapi_deactivate_destroy()
536 efree(SG(sapi_headers).mimetype); in sapi_deactivate_destroy()
537 SG(sapi_headers).mimetype = NULL; in sapi_deactivate_destroy()
586 if (SG(sapi_headers).http_status_line) { in sapi_update_response_code()
764 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.c1446 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.c315 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
321 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
340 if (SG(sapi_headers).http_status_line && in sapi_cgi_send_headers()
342 (s - SG(sapi_headers).http_status_line) >= 5 && in sapi_cgi_send_headers()
991 SG(sapi_headers).http_response_code = 200; in init_request_info()
1280 SG(sapi_headers).http_response_code = 404; in init_request_info()
1785 SG(sapi_headers).http_response_code = 400; in main()
1890 SG(sapi_headers).http_response_code = 404; in main()
1898 SG(sapi_headers).http_response_code = 403; in main()
1914 SG(sapi_headers).http_response_code = 403; in main()
[all …]
H A Dfpm_status.c160 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
192 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
203 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
214 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()
2209 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup()
2302 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
2303 SG(sapi_headers).send_default_content_type = 0; in php_cli_server_dispatch()
2313 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.c1847 _old_http_response_code = SG(sapi_headers).http_response_code; in soap_real_error_handler()
1848 _old_http_status_line = SG(sapi_headers).http_status_line; in soap_real_error_handler()
1910 SG(sapi_headers).http_status_line = NULL; in soap_real_error_handler()
1916 if (SG(sapi_headers).http_status_line) { in soap_real_error_handler()
1917 efree(SG(sapi_headers).http_status_line); in soap_real_error_handler()
1919 SG(sapi_headers).http_status_line = _old_http_status_line; in soap_real_error_handler()
1920 SG(sapi_headers).http_response_code = _old_http_response_code; in soap_real_error_handler()
/php-src/ext/opcache/
H A DZendAccelerator.c4588 static int preload_send_headers(sapi_headers_struct *sapi_headers) argument
4606 …der_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers) = sapi_module.…
4607 int (*orig_send_headers)(sapi_headers_struct *sapi_headers) = sapi_module.send_headers;
/php-src/ext/session/
H A Dsession.c1355 zend_llist *l = &SG(sapi_headers).headers; in php_session_remove_cookie()

Completed in 127 milliseconds