Lines Matching refs:php_self
548 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()
581 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array); in sapi_cgi_register_variables()