Skip to content

Commit 2559c94

Browse files
author
Anantha Kesari H Y
committed
As NetWare LibC don't have the implementation of chown and chgrp there is no point in exposing this function to PHP
1 parent f4f84ac commit 2559c94

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ext/standard/filestat.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,10 @@ PHP_FUNCTION(disk_free_space)
323323

324324
/* {{{ proto bool chgrp(string filename, mixed group)
325325
Change file group */
326+
#ifndef NETWARE
326327
PHP_FUNCTION(chgrp)
327328
{
328-
#if !defined(WINDOWS) && !defined(NETWARE) /* I guess 'chgrp' won't be available on NetWare */
329+
#if !defined(WINDOWS)
329330
pval **filename, **group;
330331
gid_t gid;
331332
struct group *gr=NULL;
@@ -367,13 +368,15 @@ PHP_FUNCTION(chgrp)
367368
RETURN_FALSE;
368369
#endif
369370
}
371+
#endif
370372
/* }}} */
371373

372374
/* {{{ proto bool chown (string filename, mixed user)
373375
Change file owner */
376+
#ifndef NETWARE
374377
PHP_FUNCTION(chown)
375378
{
376-
#if !defined(WINDOWS) && !defined(NETWARE) /* I guess 'chown' won't be available on NetWare */
379+
#if !defined(WINDOWS)
377380
pval **filename, **user;
378381
int ret;
379382
uid_t uid;
@@ -413,6 +416,7 @@ PHP_FUNCTION(chown)
413416
#endif
414417
RETURN_TRUE;
415418
}
419+
#endif
416420
/* }}} */
417421

418422
/* {{{ proto bool chmod(string filename, int mode)

0 commit comments

Comments
 (0)