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

/PHP_5_5/sapi/cgi/
H A Dcgi_main.c663 char *php_self; local
691 php_self = do_alloca(php_self_len + 1, use_heap);
692 memcpy(php_self, script_name, script_name_len + 1);
693 memcpy(php_self + script_name_len, path_info, path_info_len + 1);
696 php_self = path_info;
701 php_self = script_name;
705 php_self = "";
711 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRMLS_CC)) {
712 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array TSRMLS_CC);
715 free_alloca(php_self, use_hea
[all...]
/PHP_5_5/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_5_5/sapi/fpm/fpm/
H A Dfpm_main.c618 char *php_self; local
632 php_self = emalloc(php_self_len + 1);
634 /* Concat script_name and path_info into php_self */
636 memcpy(php_self, script_name, script_name_len + 1);
639 memcpy(php_self + script_name_len, path_info, path_info_len + 1);
643 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len TSRMLS_CC)) {
644 php_register_variable_safe("PHP_SELF", php_self, php_self_len, track_vars_array TSRMLS_CC);
646 efree(php_self);
648 php_self = SG(request_info).request_uri ? SG(request_info).request_uri : "";
649 php_self_len = strlen(php_self);
[all...]
/PHP_5_5/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 TSRMLS_CC);
356 php_register_variable("SCRIPT_NAME", php_self, track_vars_array TSRMLS_CC);
882 php_self
[all...]

Completed in 10 milliseconds