diff options
| author | Andi Gutmans <andi@php.net> | 2000-02-10 17:14:05 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2000-02-10 17:14:05 +0000 |
| commit | f452c7762f646d9b25862a03318e149d2bae828a (patch) | |
| tree | 439203f5667b98876f57e6026449fa419ab0303a /main/fopen_wrappers.c | |
| parent | bc5c9d8d7b0a32e6d716141c0ff2d7f5015c4658 (diff) | |
| download | php-git-f452c7762f646d9b25862a03318e149d2bae828a.tar.gz | |
- Introduce PHP_WIN32
Diffstat (limited to 'main/fopen_wrappers.c')
| -rw-r--r-- | main/fopen_wrappers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 61e33465d8..4dd5c7d734 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -105,7 +105,7 @@ PHPAPI int php_check_specific_open_basedir(char *basedir, char *path PLS_DC) /* Strip filename */ while (( -#if WIN32|WINNT +#if PHP_WIN32 (local_open_basedir[local_open_basedir_pos] != '\\') || #endif (local_open_basedir[local_open_basedir_pos] != '/') @@ -122,7 +122,7 @@ PHPAPI int php_check_specific_open_basedir(char *basedir, char *path PLS_DC) /* Resolve the real path into resolved_name */ if ((php_realpath(path, resolved_name) != NULL) && (php_realpath(local_open_basedir, resolved_basedir) != NULL)) { /* Check the path */ -#if WIN32|WINNT +#if PHP_WIN32 if (strncasecmp(resolved_basedir, resolved_name, strlen(resolved_basedir)) == 0) { #else if (strncmp(resolved_basedir, resolved_name, strlen(resolved_basedir)) == 0) { @@ -153,7 +153,7 @@ PHPAPI int php_check_open_basedir(char *path) ptr = pathbuf; while (ptr && *ptr) { -#if WIN32|WINNT +#if PHP_WIN32 end = strchr(ptr, ';'); #else end = strchr(ptr, ':'); @@ -340,7 +340,7 @@ PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char ** return fp; } /* Absolute path open - prepend document_root in safe mode */ -#if WIN32|WINNT +#if PHP_WIN32 if ((*filename == '\\') || (*filename == '/') || (filename[1] == ':')) { #else if (*filename == '/') { @@ -381,7 +381,7 @@ PHPAPI FILE *php_fopen_with_path(char *filename, char *mode, char *path, char ** ptr = pathbuf; while (ptr && *ptr) { -#if WIN32|WINNT +#if PHP_WIN32 end = strchr(ptr, ';'); #else end = strchr(ptr, ':'); |
