com php-src: fix values for gid and uid: sapi/apache2handler/ sapi_apache2.c

From: Date: Wed, 11 Feb 2015 10:46:31 +0000
Subject: com php-src: fix values for gid and uid: sapi/apache2handler/ sapi_apache2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84806@lists.php.net to get a copy of this message
Commit: 61d85cedd591c7f299181ff0fbf710bddb481f9b Author: Anatol Belski <ab@php.net> Wed, 11 Feb 2015 11:43:27 +0100 Parents: e6bf9b45dd91ee4681a5a9d718286e18761c2745 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=61d85cedd591c7f299181ff0fbf710bddb481f9b Log: fix values for gid and uid As stated by MSDN, these fields are always set to zero Changed paths: M sapi/apache2handler/sapi_apache2.c Diff: diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index c33e071..4361b78 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)

« previous php.cvs (#84806) next »