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

/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c340 static char *php_self = ""; variable
354 len = strlen(php_self);
355 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) {
356 php_register_variable("PHP_SELF", php_self, track_vars_array);
358 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) {
359 php_register_variable("SCRIPT_NAME", php_self, track_vars_array);
940 php_self = (char*)file_handle.filename;
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c73 static char *php_self = ""; variable
332 char * php_self = ""; local
335 php_self = (SG(request_info).request_uri );
344 add_variable("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array );
349 add_variable_magic_quote("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array );
355 php_register_variable("PHP_SELF", php_self, track_vars_array);
356 php_register_variable("SCRIPT_NAME", php_self, track_vars_array);
882 php_self
[all...]
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c632 char *php_self; local
660 php_self = do_alloca(php_self_len + 1, use_heap);
661 memcpy(php_self, script_name, script_name_len + 1);
662 memcpy(php_self + script_name_len, path_info, path_info_len + 1);
665 php_self = path_info;
670 php_self = script_name;
674 php_self = "";
680 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
681 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array);
684 free_alloca(php_self, use_hea
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c564 char *php_self; local
578 php_self = emalloc(php_self_len + 1);
580 /* Concat script_name and path_info into php_self */
582 memcpy(php_self, script_name, script_name_len + 1);
585 memcpy(php_self + script_name_len, path_info, path_info_len + 1);
589 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
590 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array);
592 efree(php_self);
594 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : "";
595 php_self_len = strlen(php_self);
[all...]

Completed in 14 milliseconds