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

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to