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

/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c1190 char *env_document_root = CGI_GETENV("DOCUMENT_ROOT"); local
1197 if (!env_document_root && PG(doc_root)) {
1198 env_document_root = CGI_PUTENV("DOCUMENT_ROOT", PG(doc_root));
1200 TRANSLATE_SLASHES(env_document_root);
1293 if (env_document_root) {
1294 int l = strlen(env_document_root);
1298 if (l && env_document_root[l - 1] == '/') {
1310 memcpy(path_translated, env_document_root, l);
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c1127 char *env_document_root = sapi_cgibin_getenv("DOCUMENT_ROOT", sizeof("DOCUMENT_ROOT") - 1 TSRMLS_CC); local
1134 if (!env_document_root && PG(doc_root)) {
1135 env_document_root = _sapi_cgibin_putenv("DOCUMENT_ROOT", PG(doc_root) TSRMLS_CC);
1137 TRANSLATE_SLASHES(env_document_root);
1244 if (env_document_root) {
1245 int l = strlen(env_document_root);
1249 if (l && env_document_root[l - 1] == '/') {
1261 memcpy(path_translated, env_document_root, l);

Completed in 9 milliseconds