Searched refs:http_response_code (Results 1 – 21 of 21) sorted by relevance
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | http_response_code.phpt | 2 Test http_response_code basic functionality 9 http_response_code(), 11 http_response_code(201), 13 http_response_code()
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | bug64433_srv.inc | 11 http_response_code($_REQUEST["status"]);
|
/PHP-7.4/ext/standard/ |
H A D | head.h | 37 PHP_FUNCTION(http_response_code);
|
H A D | head.c | 404 PHP_FUNCTION(http_response_code) in PHP_FUNCTION() argument 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()
|
H A D | basic_functions.c | 1411 ZEND_ARG_INFO(0, http_response_code) 3058 PHP_FE(http_response_code, arginfo_http_response_code)
|
/PHP-7.4/sapi/cli/tests/ |
H A D | bug67429_1.phpt | 12 http_response_code(308);
|
H A D | bug67429_2.phpt | 12 http_response_code(426);
|
H A D | bug65066_100.phpt | 12 php_cli_server_start('http_response_code(100);');
|
H A D | bug65066_422.phpt | 12 php_cli_server_start('http_response_code(422);');
|
H A D | bug65066_511.phpt | 12 php_cli_server_start('http_response_code(511);');
|
/PHP-7.4/main/ |
H A D | SAPI.c | 572 if (SG(sapi_headers).http_response_code == ncode) { in sapi_update_response_code() 580 SG(sapi_headers).http_response_code = ncode; in sapi_update_response_code() 659 int http_response_code; in sapi_header_op() local 689 http_response_code = p->response_code; in sapi_header_op() 808 if ((SG(sapi_headers).http_response_code < 300 || in sapi_header_op() 809 SG(sapi_headers).http_response_code > 399) && in sapi_header_op() 810 SG(sapi_headers).http_response_code != 201) { in sapi_header_op() 812 if (http_response_code) { /* user specified redirect code */ in sapi_header_op() 813 sapi_update_response_code(http_response_code); in sapi_header_op() 831 if (http_response_code) { in sapi_header_op() [all …]
|
H A D | SAPI.h | 57 int http_response_code; member
|
H A D | main.c | 1457 SG(sapi_headers).http_response_code == 200 in php_error_cb()
|
/PHP-7.4/sapi/fpm/fpm/ |
H A D | fpm_status.c | 165 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()
|
H A D | fpm_main.c | 318 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() 365 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers() 373 len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); 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 D | fpm_log.c | 377 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
|
/PHP-7.4/sapi/litespeed/ |
H A D | lsapi_main.c | 379 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() 415 if (err->code == SG(sapi_headers).http_response_code) { in sapi_lsapi_send_headers_like_cgi() 421 … len = slprintf(buf, sizeof(buf), "Status: %d %s", SG(sapi_headers).http_response_code, err->msg); in sapi_lsapi_send_headers_like_cgi() 423 … len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_lsapi_send_headers_like_cgi() 481 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers() 651 SG(sapi_headers).http_response_code = 200; in init_request_info()
|
/PHP-7.4/sapi/cgi/ |
H A D | cgi_main.c | 376 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() 424 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers() 430 … len = slprintf(buf, sizeof(buf), "Status: %d %s", SG(sapi_headers).http_response_code, err->str); in sapi_cgi_send_headers() 432 len = slprintf(buf, sizeof(buf), "Status: %d", 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; 2521 SG(sapi_headers).http_response_code = 404;
|
/PHP-7.4/sapi/apache2handler/ |
H A D | sapi_apache2.c | 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 D | php_cli_server.c | 607 …ttp_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_code, 0); 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()
|
/PHP-7.4/ext/soap/ |
H A D | soap.c | 2113 _old_http_response_code = SG(sapi_headers).http_response_code; 2224 SG(sapi_headers).http_response_code = _old_http_response_code;
|
Completed in 101 milliseconds