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

/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c1160 char *env_document_root = CGI_GETENV("DOCUMENT_ROOT"); local
1167 if (!env_document_root && PG(doc_root)) {
1168 env_document_root = CGI_PUTENV("DOCUMENT_ROOT", PG(doc_root));
1170 TRANSLATE_SLASHES(env_document_root);
1263 if (env_document_root) {
1264 size_t l = strlen(env_document_root);
1268 if (l && env_document_root[l - 1] == '/') {
1280 memcpy(path_translated, env_document_root, l);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c1078 char *env_document_root = sapi_cgibin_getenv("DOCUMENT_ROOT", sizeof("DOCUMENT_ROOT") - 1); local
1085 if (!env_document_root && PG(doc_root)) {
1086 env_document_root = _sapi_cgibin_putenv("DOCUMENT_ROOT", PG(doc_root));
1088 TRANSLATE_SLASHES(env_document_root);
1206 if (env_document_root) {
1207 int l = strlen(env_document_root);
1211 if (l && env_document_root[l - 1] == '/') {
1223 memcpy(path_translated, env_document_root, l);

Completed in 9 milliseconds