Lines Matching refs:php_self
663 char *php_self; in sapi_cgi_register_variables() local
691 php_self = do_alloca(php_self_len + 1, use_heap); in sapi_cgi_register_variables()
692 memcpy(php_self, script_name, script_name_len + 1); in sapi_cgi_register_variables()
693 memcpy(php_self + script_name_len, path_info, path_info_len + 1); in sapi_cgi_register_variables()
696 php_self = path_info; in sapi_cgi_register_variables()
701 php_self = script_name; in sapi_cgi_register_variables()
705 php_self = ""; in sapi_cgi_register_variables()
711 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRM… in sapi_cgi_register_variables()
712 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array TSRMLS_CC); in sapi_cgi_register_variables()
715 free_alloca(php_self, use_heap); in sapi_cgi_register_variables()
718 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : ""; in sapi_cgi_register_variables()
719 php_self_len = strlen(php_self); in sapi_cgi_register_variables()
720 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRM… in sapi_cgi_register_variables()
721 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array TSRMLS_CC); in sapi_cgi_register_variables()