Home
last modified time | relevance | path

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

/PHP-7.4/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-7.4/ext/standard/tests/streams/
H A Dbug64433_srv.inc11 http_response_code($_REQUEST["status"]);
/PHP-7.4/ext/standard/
H A Dhead.h37 PHP_FUNCTION(http_response_code);
H A Dhead.c404 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 Dbasic_functions.c1411 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 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-7.4/main/
H A DSAPI.c572 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 DSAPI.h57 int http_response_code; member
H A Dmain.c1457 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_status.c165 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 Dfpm_main.c318 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 Dfpm_log.c377 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 Dlsapi_main.c379 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 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()
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 Dsapi_apache2.c150 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 Dphp_cli_server.c607 …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 Dsoap.c2113 _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