Home
last modified time | relevance | path

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

/PHP-8.2/ext/standard/tests/general_functions/
H A Dhttp_response_code.phpt2 Test http_response_code basic functionality
8 /* The http_response_code leaks across repeats. Technically that's a bug, but it's something
18 http_response_code(),
20 http_response_code(201),
22 http_response_code()
27 http_response_code(500)
36 Warning: http_response_code(): Cannot set response code - headers already sent (output started at %…
/PHP-8.2/ext/standard/
H A Dhead.c355 PHP_FUNCTION(http_response_code) in PHP_FUNCTION() argument
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()
H A Dbasic_functions.stub.php2260 function http_response_code(int $response_code = 0): int|bool {}
H A Dbasic_functions_arginfo.h2533 ZEND_FUNCTION(http_response_code);
3167 ZEND_FE(http_response_code, arginfo_http_response_code)
/PHP-8.2/ext/standard/tests/streams/
H A Dbug64433_srv.inc11 http_response_code($_REQUEST["status"]);
/PHP-8.2/main/
H A DSAPI.c584 if (SG(sapi_headers).http_response_code == ncode) { in sapi_update_response_code()
592 SG(sapi_headers).http_response_code = ncode; in sapi_update_response_code()
671 int http_response_code; in sapi_header_op() local
701 http_response_code = p->response_code; in sapi_header_op()
811 if ((SG(sapi_headers).http_response_code < 300 || in sapi_header_op()
812 SG(sapi_headers).http_response_code > 399) && in sapi_header_op()
813 SG(sapi_headers).http_response_code != 201) { in sapi_header_op()
815 if (http_response_code) { /* user specified redirect code */ in sapi_header_op()
816 sapi_update_response_code(http_response_code); in sapi_header_op()
834 if (http_response_code) { in sapi_header_op()
[all …]
H A DSAPI.h52 int http_response_code; member
H A Dmain.c1403 SG(sapi_headers).http_response_code == 200 in php_error_cb()
/PHP-8.2/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.2/sapi/fpm/fpm/
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()
994 SG(sapi_headers).http_response_code = 200; in init_request_info()
1283 SG(sapi_headers).http_response_code = 404; in init_request_info()
1792 SG(sapi_headers).http_response_code = 400; in main()
1897 SG(sapi_headers).http_response_code = 404; in main()
1905 SG(sapi_headers).http_response_code = 403; in main()
1921 SG(sapi_headers).http_response_code = 403; in main()
[all …]
H A Dfpm_status.c159 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
191 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
202 SG(sapi_headers).http_response_code = 500; in fpm_status_handle_request()
213 SG(sapi_headers).http_response_code = 200; in fpm_status_handle_request()
H A Dfpm_log.c398 len2 = snprintf(b, FPM_LOG_BUFFER - len, "%d", SG(sapi_headers).http_response_code); in fpm_log_write()
512 if (SG(sapi_headers).http_response_code < 200 || SG(sapi_headers).http_response_code > 299) { in fpm_access_log_suppress()
/PHP-8.2/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.2/sapi/cgi/
H A Dcgi_main.c373 int response_status = SG(sapi_headers).http_response_code; in sapi_cgi_send_headers()
379 if (CGIG(nph) || SG(sapi_headers).http_response_code != 200) in sapi_cgi_send_headers()
421 if (err->code == SG(sapi_headers).http_response_code) { in sapi_cgi_send_headers()
427 … len = slprintf(buf, sizeof(buf), "Status: %d %s", SG(sapi_headers).http_response_code, err->str); in sapi_cgi_send_headers()
429 len = slprintf(buf, sizeof(buf), "Status: %d", SG(sapi_headers).http_response_code); in sapi_cgi_send_headers()
1180 SG(sapi_headers).http_response_code = 200;
1378 SG(sapi_headers).http_response_code = 404;
1890 SG(sapi_headers).http_response_code = 400;
2463 SG(sapi_headers).http_response_code = 403;
2466 SG(sapi_headers).http_response_code = 404;
/PHP-8.2/ext/standard/tests/http/
H A Dgh11274.phpt13 http_response_code($desired_status);
/PHP-8.2/sapi/apache2handler/
H A Dsapi_apache2.c154 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()
527 SG(sapi_headers).http_response_code = !r->status ? HTTP_OK : r->status; in php_apache_request_ctor()
/PHP-8.2/sapi/fpm/tests/
H A Dlog-suppress-output.phpt57 http_response_code(500);
/PHP-8.2/sapi/cli/
H A Dphp_cli_server.c566 …ttp_status_line(&buffer, client->request.protocol_version, SG(sapi_headers).http_response_code, 0); in sapi_cli_server_send_headers()
2119 php_cli_server_log_response(client, SG(sapi_headers).http_response_code, NULL); in php_cli_server_dispatch_script()
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()
/PHP-8.2/ext/soap/
H A Dsoap.c1731 _old_http_response_code = SG(sapi_headers).http_response_code;
1804 SG(sapi_headers).http_response_code = _old_http_response_code;

Completed in 130 milliseconds