Lines Matching refs:php_self
690 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()
738 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { 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()
746 php_self_len = strlen(php_self); in sapi_cgi_register_variables()
747 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
748 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()