From 76f8041036e913a94b94e1ff2a4b21912277ba7c 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 49e91ea56e..7c2931a865 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -1196,6 +1196,8 @@ PHP_FUNCTION(posix_initgroups) RETURN_FALSE; } + if(strlen(name)==0) RETURN_FALSE; + RETURN_BOOL(!initgroups((const char *)name, basegid)); } /* }}} */ -- 2.40.0