From: Anantha Kesari H Y Date: Tue, 19 Oct 2004 08:21:24 +0000 (+0000) Subject: As NetWare LibC don't have the implementation of chown and chgrp there is no point... X-Git-Tag: PRE_NEW_VM_GEN_PATCH~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2559c94740e01032735a26cb3dcee27a1153b295;p=php As NetWare LibC don't have the implementation of chown and chgrp there is no point in exposing this function to PHP --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index c77e3dc68d..c15f5d35f8 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -323,9 +323,10 @@ PHP_FUNCTION(disk_free_space) /* {{{ proto bool chgrp(string filename, mixed group) Change file group */ +#ifndef NETWARE PHP_FUNCTION(chgrp) { -#if !defined(WINDOWS) && !defined(NETWARE) /* I guess 'chgrp' won't be available on NetWare */ +#if !defined(WINDOWS) pval **filename, **group; gid_t gid; struct group *gr=NULL; @@ -367,13 +368,15 @@ PHP_FUNCTION(chgrp) RETURN_FALSE; #endif } +#endif /* }}} */ /* {{{ proto bool chown (string filename, mixed user) Change file owner */ +#ifndef NETWARE PHP_FUNCTION(chown) { -#if !defined(WINDOWS) && !defined(NETWARE) /* I guess 'chown' won't be available on NetWare */ +#if !defined(WINDOWS) pval **filename, **user; int ret; uid_t uid; @@ -413,6 +416,7 @@ PHP_FUNCTION(chown) #endif RETURN_TRUE; } +#endif /* }}} */ /* {{{ proto bool chmod(string filename, int mode)