Lines Matching refs:ctrls

59 LDAPControl *ldap_control_find( const char *oid, LDAPControl **ctrls, LDAPControl ***nextctrlp)  in ldap_control_find()  argument
62 return ldap_find_control(oid, ctrls); in ldap_control_find()
750 static void _php_ldap_controls_to_array(LDAP *ld, LDAPControl** ctrls, zval* array, int request) in _php_ldap_controls_to_array() argument
760 if (ctrls == NULL) { in _php_ldap_controls_to_array()
763 ctrlp = ctrls; in _php_ldap_controls_to_array()
769 ldap_controls_free(ctrls); in _php_ldap_controls_to_array()
774 LDAPControl** ctrlp, **ctrls = NULL; in php_ldap_controls_from_array() local
779 ctrls = safe_emalloc((1 + num_controls), sizeof(*ctrls), 0); in php_ldap_controls_from_array()
780 *ctrls = NULL; in php_ldap_controls_from_array()
781 ctrlp = ctrls; in php_ldap_controls_from_array()
800 ctrlp = ctrls; in php_ldap_controls_from_array()
805 efree(ctrls); in php_ldap_controls_from_array()
806 ctrls = NULL; in php_ldap_controls_from_array()
809 return ctrls; in php_ldap_controls_from_array()
812 static void _php_ldap_controls_free (LDAPControl*** ctrls) in _php_ldap_controls_free() argument
816 if (*ctrls) { in _php_ldap_controls_free()
817 ctrlp = *ctrls; in _php_ldap_controls_free()
822 efree(*ctrls); in _php_ldap_controls_free()
823 *ctrls = NULL; in _php_ldap_controls_free()
3081 LDAPControl **ctrls = NULL; in PHP_FUNCTION() local
3083 if (ldap_get_option(ld->link, option, &ctrls) || ctrls == NULL) { in PHP_FUNCTION()
3084 if (ctrls) { in PHP_FUNCTION()
3085 ldap_memfree(ctrls); in PHP_FUNCTION()
3089 _php_ldap_controls_to_array(ld->link, ctrls, retval, 1); in PHP_FUNCTION()
3274 LDAPControl **ctrls; in PHP_FUNCTION() local
3282 ctrls = php_ldap_controls_from_array(ldap, Z_ARRVAL_P(newval), 3); in PHP_FUNCTION()
3284 if (ctrls == NULL) { in PHP_FUNCTION()
3287 rc = ldap_set_option(ldap, option, ctrls); in PHP_FUNCTION()
3288 _php_ldap_controls_free(&ctrls); in PHP_FUNCTION()