1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00

- Last patch for tonight. A more optimized way to check for absolute path

- in Windows. This should be fixed to use the virtual cwd macro for
- ABSOLUTE_DIR() but I need to have time to understand the logic first
This commit is contained in:
Andi Gutmans
2000-06-16 01:14:08 +00:00
parent 70b8e3e8f6
commit b73a6f883d

View File

@@ -327,7 +327,8 @@ PHPAPI FILE *php_fopen_primary_script(void)
#endif
#ifdef PHP_WIN32
if (PG(doc_root) && path_info && (IS_SLASH(*PG(doc_root))
|| strstr(PG(doc_root),":\\") || strstr(PG(doc_root),":/"))) {
/* Check for absolute path. This should also use virtual cwd macros */
|| (PG(doc_root)[1] == ':' && IS_SLASH(PG(doc_root)[2]))) {
#else
if (PG(doc_root) && path_info && IS_SLASH(*PG(doc_root))) {
#endif