Browse Source

Fixed bug #28818 (Apache 2 sapis do not export st_dev).

PHP-5.0
Ilia Alshanetsky 22 years ago
parent
commit
cfbf5b24b7
  1. 1
      sapi/apache2filter/sapi_apache2.c
  2. 1
      sapi/apache2handler/sapi_apache2.c

1
sapi/apache2filter/sapi_apache2.c

@ -171,6 +171,7 @@ php_apache_sapi_get_stat(TSRMLS_D)
ctx->finfo.st_uid = ctx->r->finfo.user;
ctx->finfo.st_gid = ctx->r->finfo.group;
ctx->finfo.st_dev = ctx->r->finfo.device;
ctx->finfo.st_ino = ctx->r->finfo.inode;
#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
ctx->finfo.st_atime.tv_sec = ctx->r->finfo.atime/1000000;

1
sapi/apache2handler/sapi_apache2.c

@ -181,6 +181,7 @@ php_apache_sapi_get_stat(TSRMLS_D)
ctx->finfo.st_uid = ctx->r->finfo.user;
ctx->finfo.st_gid = ctx->r->finfo.group;
ctx->finfo.st_dev = ctx->r->finfo.device;
ctx->finfo.st_ino = ctx->r->finfo.inode;
#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
ctx->finfo.st_atime.tv_sec = ctx->r->finfo.atime/1000000;

Loading…
Cancel
Save