Searched defs:php_self (Results 1 - 4 of 4) sorted by relevance

/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c644 char *php_self; local
672 php_self = do_alloca(php_self_len + 1, use_heap);
673 memcpy(php_self, script_name, script_name_len + 1);
674 memcpy(php_self + script_name_len, path_info, path_info_len + 1);
677 php_self = path_info;
682 php_self = script_name;
686 php_self = "";
692 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
693 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array);
696 free_alloca(php_self, use_hea
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c342 static char *php_self = ""; variable
356 len = strlen(php_self);
357 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) {
358 php_register_variable("PHP_SELF", php_self, track_vars_array);
360 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) {
361 php_register_variable("SCRIPT_NAME", php_self, track_vars_array);
931 php_self = (char*)file_handle.filename;
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c594 char *php_self; local
608 php_self = emalloc(php_self_len + 1);
610 /* Concat script_name and path_info into php_self */
612 memcpy(php_self, script_name, script_name_len + 1);
615 memcpy(php_self + script_name_len, path_info, path_info_len + 1);
619 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
620 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array);
622 efree(php_self);
624 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : "";
625 php_self_len = strlen(php_self);
[all...]
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c73 static char *php_self = ""; variable
309 char * php_self = ""; local
312 php_self = (SG(request_info).request_uri );
318 add_variable("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array );
322 php_register_variable("PHP_SELF", php_self, track_vars_array);
323 php_register_variable("SCRIPT_NAME", php_self, track_vars_array);
849 php_self = *p;

Completed in 10 milliseconds