Home
last modified time | relevance | path

Searched refs:php_self (Results 1 – 4 of 4) sorted by relevance

/PHP-8.1/sapi/cli/
H A Dphp_cli.c325 static char *php_self = ""; variable
339 len = strlen(php_self); in sapi_cli_register_variables()
340 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) { in sapi_cli_register_variables()
341 php_register_variable("PHP_SELF", php_self, track_vars_array); in sapi_cli_register_variables()
344 php_register_variable("SCRIPT_NAME", php_self, track_vars_array); in sapi_cli_register_variables()
907 php_self = script_file; in do_cli()
914 php_self = "Standard input code"; in do_cli()
917 zend_stream_init_fp(&file_handle, stdin, php_self); in do_cli()
928 argv[php_optind-1] = php_self; in do_cli()
971 zend_printf("No syntax errors detected in %s\n", php_self); in do_cli()
[all …]
/PHP-8.1/sapi/fpm/fpm/
H A Dfpm_main.c548 char *php_self; in sapi_cgi_register_variables() local
562 php_self = emalloc(php_self_len + 1); in sapi_cgi_register_variables()
566 memcpy(php_self, script_name, script_name_len + 1); in sapi_cgi_register_variables()
569 memcpy(php_self + script_name_len, path_info, path_info_len + 1); in sapi_cgi_register_variables()
573 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
574 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
576 efree(php_self); in sapi_cgi_register_variables()
578 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
579 php_self_len = strlen(php_self); in sapi_cgi_register_variables()
580 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
[all …]
/PHP-8.1/sapi/cgi/
H A Dcgi_main.c690 char *php_self; in sapi_cgi_register_variables() local
718 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
719 memcpy(php_self, script_name, script_name_len + 1); in sapi_cgi_register_variables()
720 memcpy(php_self + script_name_len, path_info, path_info_len + 1); in sapi_cgi_register_variables()
723 php_self = path_info; in sapi_cgi_register_variables()
728 php_self = script_name; in sapi_cgi_register_variables()
732 php_self = ""; in sapi_cgi_register_variables()
739 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
742 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
745 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
[all …]
/PHP-8.1/sapi/litespeed/
H A Dlsapi_main.c72 static char *php_self = ""; variable
262 char * php_self = ""; in sapi_lsapi_register_variables() local
265 php_self = (SG(request_info).request_uri ); in sapi_lsapi_register_variables()
271 add_variable("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array ); in sapi_lsapi_register_variables()
275 php_register_variable("PHP_SELF", php_self, track_vars_array); in sapi_lsapi_register_variables()
276 php_register_variable("SCRIPT_NAME", php_self, track_vars_array); in sapi_lsapi_register_variables()
1318 php_self = *p; in cli_main()

Completed in 22 milliseconds