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

/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c336 static char *php_self = ""; variable
350 len = strlen(php_self);
351 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len TSRMLS_CC)) {
352 php_register_variable("PHP_SELF", php_self, track_vars_array TSRMLS_CC);
354 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len TSRMLS_CC)) {
355 php_register_variable("SCRIPT_NAME", php_self, track_vars_array TSRMLS_CC);
954 php_self = (char*)file_handle.filename;
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c622 char *php_self; local
636 php_self = emalloc(php_self_len + 1);
638 /* Concat script_name and path_info into php_self */
640 memcpy(php_self, script_name, script_name_len + 1);
643 memcpy(php_self + script_name_len, path_info, path_info_len + 1);
647 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRMLS_CC)) {
648 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array TSRMLS_CC);
650 efree(php_self);
652 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : "";
653 php_self_len = strlen(php_self);
[all...]
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c666 char *php_self; local
694 php_self = do_alloca(php_self_len + 1, use_heap);
695 memcpy(php_self, script_name, script_name_len + 1);
696 memcpy(php_self + script_name_len, path_info, path_info_len + 1);
699 php_self = path_info;
704 php_self = script_name;
708 php_self = "";
714 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRMLS_CC)) {
715 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array TSRMLS_CC);
718 free_alloca(php_self, use_hea
[all...]
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c75 static char *php_self = ""; variable
255 char * php_self = ""; local
258 php_self = (SG(request_info).request_uri );
265 add_variable("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array );
270 add_variable_magic_quote("PHP_SELF", 8, php_self, strlen( php_self ), track_vars_array );
277 php_register_variable("PHP_SELF", php_self, track_vars_array TSRMLS_CC);
278 php_register_variable("SCRIPT_NAME", php_self, track_vars_array TSRMLS_CC);
779 php_self
[all...]

Completed in 9 milliseconds