Home
last modified time | relevance | path

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

/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_main.c594 char *php_self; in sapi_cgi_register_variables() local
608 php_self = emalloc(php_self_len + 1); in sapi_cgi_register_variables()
612 memcpy(php_self, script_name, script_name_len + 1); in sapi_cgi_register_variables()
615 memcpy(php_self + script_name_len, path_info, path_info_len + 1); in sapi_cgi_register_variables()
619 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
620 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
622 efree(php_self); in sapi_cgi_register_variables()
624 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
625 php_self_len = strlen(php_self); in sapi_cgi_register_variables()
626 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
[all …]
/PHP-7.1/sapi/litespeed/
H A Dlsapi_main.c90 static char *php_self = ""; variable
285 char * php_self = ""; in sapi_lsapi_register_variables() local
288 php_self = (SG(request_info).request_uri ); in sapi_lsapi_register_variables()
294 add_variable("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array ); in sapi_lsapi_register_variables()
298 php_register_variable("PHP_SELF", php_self, track_vars_array); in sapi_lsapi_register_variables()
299 php_register_variable("SCRIPT_NAME", php_self, track_vars_array); in sapi_lsapi_register_variables()
1099 php_self = *p; in cli_main()
/PHP-7.1/sapi/cli/
H A Dphp_cli.c343 static char *php_self = ""; variable
357 len = strlen(php_self); in sapi_cli_register_variables()
358 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) { in sapi_cli_register_variables()
359 php_register_variable("PHP_SELF", php_self, track_vars_array); in sapi_cli_register_variables()
361 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) { in sapi_cli_register_variables()
362 php_register_variable("SCRIPT_NAME", php_self, track_vars_array); in sapi_cli_register_variables()
953 php_self = (char*)file_handle.filename; in do_cli()
/PHP-7.1/sapi/cgi/
H A Dcgi_main.c702 char *php_self; in sapi_cgi_register_variables() local
730 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
731 memcpy(php_self, script_name, script_name_len + 1); in sapi_cgi_register_variables()
732 memcpy(php_self + script_name_len, path_info, path_info_len + 1); in sapi_cgi_register_variables()
735 php_self = path_info; in sapi_cgi_register_variables()
740 php_self = script_name; in sapi_cgi_register_variables()
744 php_self = ""; in sapi_cgi_register_variables()
751 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
754 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
757 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
[all …]

Completed in 32 milliseconds