Searched refs:env_document_root (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c1176 char *env_document_root = CGI_GETENV("DOCUMENT_ROOT"); local
1183 if (!env_document_root && PG(doc_root)) {
1184 env_document_root = CGI_PUTENV("DOCUMENT_ROOT", PG(doc_root));
1186 TRANSLATE_SLASHES(env_document_root);
1279 if (env_document_root) {
1280 size_t l = strlen(env_document_root);
1284 if (l && env_document_root[l - 1] == '/') {
1296 memcpy(path_translated, env_document_root, l);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c1107 char *env_document_root = FCGI_GETENV(request, "DOCUMENT_ROOT"); local
1114 if (!env_document_root && PG(doc_root)) {
1115 env_document_root = FCGI_PUTENV(request, "DOCUMENT_ROOT", PG(doc_root));
1117 TRANSLATE_SLASHES(env_document_root);
1235 if (env_document_root) {
1236 int l = strlen(env_document_root);
1240 if (l && env_document_root[l - 1] == '/') {
1252 memcpy(path_translated, env_document_root, l);

Completed in 9 milliseconds