Lines Matching refs:ctrls

60 LDAPControl *ldap_control_find( const char *oid, LDAPControl **ctrls, LDAPControl ***nextctrlp)  in ldap_control_find()  argument
63 return ldap_find_control(oid, ctrls); in ldap_control_find()
727 static void _php_ldap_controls_to_array(LDAP *ld, LDAPControl** ctrls, zval* array, int request) in _php_ldap_controls_to_array() argument
737 if (ctrls == NULL) { in _php_ldap_controls_to_array()
740 ctrlp = ctrls; in _php_ldap_controls_to_array()
746 ldap_controls_free(ctrls); in _php_ldap_controls_to_array()
752 LDAPControl** ctrlp, **ctrls = NULL; in _php_ldap_controls_from_array() local
757 ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); in _php_ldap_controls_from_array()
758 *ctrls = NULL; in _php_ldap_controls_from_array()
759 ctrlp = ctrls; in _php_ldap_controls_from_array()
778 ctrlp = ctrls; in _php_ldap_controls_from_array()
783 efree(ctrls); in _php_ldap_controls_from_array()
784 ctrls = NULL; in _php_ldap_controls_from_array()
787 return ctrls; in _php_ldap_controls_from_array()
790 static void _php_ldap_controls_free (LDAPControl*** ctrls) in _php_ldap_controls_free() argument
794 if (*ctrls) { in _php_ldap_controls_free()
795 ctrlp = *ctrls; in _php_ldap_controls_free()
800 efree(*ctrls); in _php_ldap_controls_free()
801 *ctrls = NULL; in _php_ldap_controls_free()
3116 LDAPControl **ctrls = NULL; in PHP_FUNCTION() local
3118 if (ldap_get_option(ld->link, option, &ctrls) || ctrls == NULL) { in PHP_FUNCTION()
3119 if (ctrls) { in PHP_FUNCTION()
3120 ldap_memfree(ctrls); in PHP_FUNCTION()
3124 _php_ldap_controls_to_array(ld->link, ctrls, retval, 1); in PHP_FUNCTION()
3290 LDAPControl **ctrls; in PHP_FUNCTION() local
3298 ctrls = _php_ldap_controls_from_array(ldap, newval, 3); in PHP_FUNCTION()
3300 if (ctrls == NULL) { in PHP_FUNCTION()
3303 rc = ldap_set_option(ldap, option, ctrls); in PHP_FUNCTION()
3304 _php_ldap_controls_free(&ctrls); in PHP_FUNCTION()