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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user