From 889e8990a29b2709a1e4027768753c0e982b619d 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 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)); } /* }}} */ -- 2.50.0