/PHP-8.0/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-8.0/ext/standard/tests/streams/ |
H A D | bug64433_srv.inc | 11 http_response_code($_REQUEST["status"]);
|
/PHP-8.0/ext/standard/ |
H A D | head.c | 355 PHP_FUNCTION(http_response_code) in PHP_FUNCTION() argument 368 old_response_code = SG(sapi_headers).http_response_code; in PHP_FUNCTION() 369 SG(sapi_headers).http_response_code = (int)response_code; in PHP_FUNCTION() 378 if (!SG(sapi_headers).http_response_code) { in PHP_FUNCTION() 382 RETURN_LONG(SG(sapi_headers).http_response_code); in PHP_FUNCTION()
|
H A D | basic_functions.stub.php | 505 function http_response_code(int $response_code = 0): int|bool {} function
|
H A D | basic_functions_arginfo.h | 2436 ZEND_FUNCTION(http_response_code); 3070 ZEND_FE(http_response_code, arginfo_http_response_code)
|
/PHP-8.0/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-8.0/main/ |
H A D | SAPI.c | 576 if (SG(sapi_headers).http_response_code == ncode) { in sapi_update_response_code() 584 SG(sapi_headers).http_response_code = ncode; in sapi_update_response_code() 663 int http_response_code; in sapi_header_op() local 693 http_response_code = p->response_code; in sapi_header_op() 803 if ((SG(sapi_headers).http_response_code < 300 || in sapi_header_op() 804 SG(sapi_headers).http_response_code > 399) && in sapi_header_op() 805 SG(sapi_headers).http_response_code != 201) { in sapi_header_op() 807 if (http_response_code) { /* user specified redirect code */ in sapi_header_op() 808 sapi_update_response_code(http_response_code); in sapi_header_op() 826 if (http_response_code) { in sapi_header_op() [all …]
|
H A D | SAPI.h | 52 int http_response_code; member
|
H A D | main.c | 1377 SG(sapi_headers).http_response_code == 200 in php_error_cb()
|
/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_status.c | 158 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request() 186 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 197 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request() 208 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
|
H A D | fpm_main.c | 313 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() 360 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers() 368 len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_cgi_send_headers() 974 SG(sapi_headers).http_response_code = 200; in init_request_info() 1243 SG(sapi_headers).http_response_code = 404; in init_request_info() 1773 SG(sapi_headers).http_response_code = 400; in main() 1873 SG(sapi_headers).http_response_code = 404; in main() 1881 SG(sapi_headers).http_response_code = 403; in main() 1897 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-8.0/sapi/litespeed/ |
H A D | lsapi_main.c | 371 int response_status = SG(sapi_headers).http_response_code; in sapi_lsapi_send_headers_like_cgi() 378 if (SG(sapi_headers).http_response_code != 200) in sapi_lsapi_send_headers_like_cgi() 407 if (err->code == SG(sapi_headers).http_response_code) { in sapi_lsapi_send_headers_like_cgi() 413 … len = slprintf(buf, sizeof(buf), "Status: %d %s", SG(sapi_headers).http_response_code, err->msg); in sapi_lsapi_send_headers_like_cgi() 415 … len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_lsapi_send_headers_like_cgi() 472 LSAPI_SetRespStatus( SG(sapi_headers).http_response_code ); in sapi_lsapi_send_headers() 640 SG(sapi_headers).http_response_code = 200; in init_request_info()
|
/PHP-8.0/sapi/cgi/ |
H A D | cgi_main.c | 372 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers() 378 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers() 420 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers() 426 … len = slprintf(buf, sizeof(buf), "Status: %d %s", SG(sapi_headers).http_response_code, err->str); in sapi_cgi_send_headers() 428 len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_cgi_send_headers() 1182 SG(sapi_headers).http_response_code = 200; 1380 SG(sapi_headers).http_response_code = 404; 1915 SG(sapi_headers).http_response_code = 400; 2489 SG(sapi_headers).http_response_code = 403; 2492 SG(sapi_headers).http_response_code = 404;
|
/PHP-8.0/sapi/apache2handler/ |
H A D | sapi_apache2.c | 154 ctx->r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_send_headers() 300 r->status = SG(sapi_headers).http_response_code; in php_apache_sapi_flush() 511 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
|
/PHP-8.0/sapi/cli/ |
H A D | php_cli_server.c | 552 …ttp_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_code, 0); in sapi_cli_server_send_headers() 2047 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script() 2129 SG(sapi_headers).http_response_code = 200; in php_cli_server_request_startup() 2217 if (SG(sapi_headers).http_response_code == 304) { in php_cli_server_dispatch()
|
/PHP-8.0/ext/soap/ |
H A D | soap.c | 1833 _old_http_response_code = SG(sapi_headers).http_response_code; 1913 SG(sapi_headers).http_response_code = _old_http_response_code;
|