Home
last modified time | relevance | path

Searched refs:http_response_code (Results 1 – 21 of 21) sorted by relevance

/PHP-8.0/ext/standard/tests/general_functions/
H A Dhttp_response_code.phpt2 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 Dbug64433_srv.inc11 http_response_code($_REQUEST["status"]);
/PHP-8.0/ext/standard/
H A Dhead.c355 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 Dbasic_functions.stub.php505 function http_response_code(int $response_code = 0): int|bool {} function
H A Dbasic_functions_arginfo.h2436 ZEND_FUNCTION(http_response_code);
3070 ZEND_FE(http_response_code, arginfo_http_response_code)
/PHP-8.0/sapi/cli/tests/
H A Dbug67429_1.phpt12 http_response_code(308);
H A Dbug67429_2.phpt12 http_response_code(426);
H A Dbug65066_100.phpt12 php_cli_server_start('http_response_code(100);');
H A Dbug65066_422.phpt12 php_cli_server_start('http_response_code(422);');
H A Dbug65066_511.phpt12 php_cli_server_start('http_response_code(511);');
/PHP-8.0/main/
H A DSAPI.c576 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 DSAPI.h52 int http_response_code; member
H A Dmain.c1377 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_status.c158 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 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()
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 Dfpm_log.c377 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 Dlsapi_main.c371 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 Dcgi_main.c372 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 Dsapi_apache2.c154 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 Dphp_cli_server.c552 …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 Dsoap.c1833 _old_http_response_code = SG(sapi_headers).http_response_code;
1913 SG(sapi_headers).http_response_code = _old_http_response_code;

Completed in 156 milliseconds