Re: cvs: php-src /ext/standard filestat.c

From: Date: Tue, 19 Oct 2004 22:02:42 +0000
Subject: Re: cvs: php-src /ext/standard filestat.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-28991@lists.php.net to get a copy of this message
Doesn't this blow up the portability of scripts? andrey Anantha Kesari H Y wrote:
hyanantha Tue Oct 19 04:21:25 2004 EDT
  Modified files:                  /php-src/ext/standard	filestat.c   Log:
As NetWare LibC don't have the implementation of chown and chgrp there is no point in exposing this function to PHP http://cvs.php.net/diff.php/php-src/ext/standard/filestat.c?r1=1.132&r2=1.133&ty=u Index: php-src/ext/standard/filestat.c diff -u php-src/ext/standard/filestat.c:1.132 php-src/ext/standard/filestat.c:1.133 --- php-src/ext/standard/filestat.c:1.132 Wed Sep 29 05:47:15 2004 +++ php-src/ext/standard/filestat.c Tue Oct 19 04:21:24 2004 @@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
*/ -/* $Id: filestat.c,v 1.132 2004/09/29 09:47:15 hyanantha Exp $ */ +/* $Id: filestat.c,v 1.133 2004/10/19 08:21:24 hyanantha Exp $ */ #include "php.h" #include "safe_mode.h" @@ -323,9 +323,10 @@ /* {{{ 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 @@ 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 @@ #endif RETURN_TRUE; } +#endif /* }}} */ /* {{{ proto bool chmod(string filename, int mode)


« previous php.cvs (#28991) next »