diff options
| -rw-r--r-- | ext/posix/posix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 4a5198956e..8946634235 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -1361,6 +1361,8 @@ PHP_FUNCTION(posix_initgroups) RETURN_FALSE; } + if(strlen(name)==0) RETURN_FALSE; + RETURN_BOOL(!initgroups((const char *)name, basegid)); } /* }}} */ |
