Lines Matching refs:group
299 struct group gr; in php_get_gid_by_name()
300 struct group *retgrptr; in php_get_gid_by_name()
316 struct group *gr = getgrnam(name); in php_get_gid_by_name()
331 zval *group; in php_do_chgrp() local
340 Z_PARAM_ZVAL(group) in php_do_chgrp()
348 if (Z_TYPE_P(group) == IS_LONG) { in php_do_chgrp()
350 value = &Z_LVAL_P(group); in php_do_chgrp()
351 } else if (Z_TYPE_P(group) == IS_STRING) { in php_do_chgrp()
353 value = Z_STRVAL_P(group); in php_do_chgrp()
355 …cref(NULL, E_WARNING, "parameter 2 should be string or int, %s given", zend_zval_type_name(group)); in php_do_chgrp()
376 if (Z_TYPE_P(group) == IS_LONG) { in php_do_chgrp()
377 gid = (gid_t)Z_LVAL_P(group); in php_do_chgrp()
378 } else if (Z_TYPE_P(group) == IS_STRING) { in php_do_chgrp()
379 if(php_get_gid_by_name(Z_STRVAL_P(group), &gid) != SUCCESS) { in php_do_chgrp()
380 php_error_docref(NULL, E_WARNING, "Unable to find gid for %s", Z_STRVAL_P(group)); in php_do_chgrp()
384 …cref(NULL, E_WARNING, "parameter 2 should be string or int, %s given", zend_zval_type_name(group)); in php_do_chgrp()