Re: cvs: php-src(PHP_5_2) / NEWS /ext/posix config.m4 php_posix.h posix.c
| From: | Jani Taskinen | Date: | Mon, 19 Jun 2006 07:06:11 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_2) / NEWS /ext/posix config.m4 php_posix.h posix.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-38788@lists.php.net to get a copy of this message | ||
On Mon, 19 Jun 2006, Ilia Alshanetsky wrote:
+/* {{{ proto bool initgroups(string name, int base_group_id) + Calculate the group access list for the user specified in name. */ +PHP_FUNCTION(posix_initgroups) +{ + long basegid; + char *name; + int name_len; + + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", &name, &name_len, &basegid) == FAILURE) { + RETURN_FALSE; + } + + RETURN_BOOL(!initgroups((const char *)name, basegid)); +} +/* }}} */ +
You didn't put #ifdef HAVE_INITGROUPS around the last part..
--Jani