From c9f5c32491bad87e48f86245c6bf0762ef36424a Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Thu, 6 Aug 2009 10:56:00 +0000 Subject: [PATCH] The user argument cannot be NULL here - fixes 2 tests --- ext/posix/posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 0230af73df..eda3ec4f8d 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -1390,6 +1390,8 @@ PHP_FUNCTION(posix_initgroups) RETURN_FALSE; } + if(strlen(name)==0) RETURN_FALSE; + RETURN_BOOL(!initgroups((const char *)name, basegid)); } /* }}} */ -- 2.40.0