If you call chgrp and pass a non-existent group, you'll get the warning "Warning: chgrp(): Unable to find gid for nogroup in".
To check beforehand if the group exists, use posix_getgrid() or posix_getgrnam().
chgrp
(PHP 4, PHP 5)
chgrp — 改变文件所属的组
chgrp
Dan Dascalescu
04-Dec-2007 09:12
04-Dec-2007 09:12
