diff options
author | Anatol Belski <ab@php.net> | 2015-02-11 11:43:27 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-02-11 11:46:31 +0100 |
commit | 61d85cedd591c7f299181ff0fbf710bddb481f9b (patch) | |
tree | 1b057ad5ae22c7d291186d90d7e88216d09d24ca /sapi/apache2handler | |
parent | e6bf9b45dd91ee4681a5a9d718286e18761c2745 (diff) | |
download | php-git-61d85cedd591c7f299181ff0fbf710bddb481f9b.tar.gz |
fix values for gid and uid
As stated by MSDN, these fields are always set to zero
Diffstat (limited to 'sapi/apache2handler')
-rw-r--r-- | sapi/apache2handler/sapi_apache2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index c33e071c56..4361b78d33 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -220,8 +220,13 @@ php_apache_sapi_get_stat(void) { php_struct *ctx = SG(server_context); +#ifdef PHP_WIN32 + ctx->finfo.st_uid = 0; + ctx->finfo.st_gid = 0; +#else ctx->finfo.st_uid = ctx->r->finfo.user; ctx->finfo.st_gid = ctx->r->finfo.group; +#endif ctx->finfo.st_dev = ctx->r->finfo.device; ctx->finfo.st_ino = ctx->r->finfo.inode; #if defined(NETWARE) && defined(CLIB_STAT_PATCH) |