diff options
Diffstat (limited to 'ext/standard/php_filestat.h')
-rw-r--r-- | ext/standard/php_filestat.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/standard/php_filestat.h b/ext/standard/php_filestat.h index 348324163f..56f6e1bf52 100644 --- a/ext/standard/php_filestat.h +++ b/ext/standard/php_filestat.h @@ -56,4 +56,21 @@ PHP_FUNCTION(clearstatcache); ZVAL_LONG(name,val); \ name->refcount++; +#ifdef PHP_WIN32 +#define S_IRUSR S_IREAD +#define S_IWUSR S_IWRITE +#define S_IXUSR S_IEXEC +#define S_IRGRP S_IREAD +#define S_IWGRP S_IWRITE +#define S_IXGRP S_IEXEC +#define S_IROTH S_IREAD +#define S_IWOTH S_IWRITE +#define S_IXOTH S_IEXEC + +#undef getgid +#define getgroups(a,b) 0 +#define getgid() 1 +#define getuid() 1 +#endif + #endif /* PHP_FILESTAT_H */ |