Lines Matching refs:php_self
691 char *php_self; in sapi_cgi_register_variables() local
719 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
720 memcpy(php_self, script_name, script_name_len + 1); in sapi_cgi_register_variables()
721 memcpy(php_self + script_name_len, path_info, path_info_len + 1); in sapi_cgi_register_variables()
724 php_self = path_info; in sapi_cgi_register_variables()
729 php_self = script_name; in sapi_cgi_register_variables()
733 php_self = ""; in sapi_cgi_register_variables()
739 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
740 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()
743 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
746 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
747 php_self_len = strlen(php_self); in sapi_cgi_register_variables()
748 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) { in sapi_cgi_register_variables()
749 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()