Lines Matching refs:ber

87 	BerElement  *ber;  member
214 if (entry->ber != NULL) { in ldap_result_entry_free_obj()
215 ber_free(entry->ber, 0); in ldap_result_entry_free_obj()
216 entry->ber = NULL; in ldap_result_entry_free_obj()
295 BerElement *ber; in _php_ldap_control_to_array() local
298 ber = ber_init(&ctrl->ldctl_value); in _php_ldap_control_to_array()
299 if (ber == NULL) { in _php_ldap_control_to_array()
301 } else if (ber_scanf(ber, "{m{" /*}}*/, &bv) == LBER_ERROR) { in _php_ldap_control_to_array()
309 while (ber_scanf(ber, "{m" /*}*/, &bv) != LBER_ERROR) { in _php_ldap_control_to_array()
314 if (ber_scanf(ber, "[W]", &vals) == LBER_ERROR || vals == NULL) in _php_ldap_control_to_array()
330 if (ber != NULL) { in _php_ldap_control_to_array()
331 ber_free(ber, 1); in _php_ldap_control_to_array()
412 BerElement *ber = NULL; in _php_ldap_control_from_array() local
477 ber = ber_alloc_t(LBER_USE_DER); in _php_ldap_control_from_array()
478 if (ber == NULL) { in _php_ldap_control_from_array()
487 if (ldap_put_vrFilter(ber, ZSTR_VAL(tmpstring)) == -1) { in _php_ldap_control_from_array()
490 } else if (ber_flatten2(ber, &control_value, control_value_alloc) == -1) { in _php_ldap_control_from_array()
501 ber = ber_alloc_t(LBER_USE_DER); in _php_ldap_control_from_array()
503 if (ber == NULL) { in _php_ldap_control_from_array()
532 ber_init2( ber, NULL, LBER_USE_DER ); in _php_ldap_control_from_array()
534 if (ber_printf(ber, "{v}", ldap_attrs) == -1) { in _php_ldap_control_from_array()
539 err = ber_flatten2(ber, &control_value, control_value_alloc); in _php_ldap_control_from_array()
702 if (ber != NULL) { in _php_ldap_control_from_array()
703 ber_free(ber, 1); in _php_ldap_control_from_array()
1919 resultentry->ber = NULL; in PHP_FUNCTION()
1948 resultentry_next->ber = NULL; in PHP_FUNCTION()
1963 BerElement *ber; in PHP_FUNCTION() local
2000 attribute = ldap_first_attribute(ldap, ldap_result_entry, &ber); in PHP_FUNCTION()
2022 attribute = ldap_next_attribute(ldap, ldap_result_entry, ber); in PHP_FUNCTION()
2025 if (ber != NULL) { in PHP_FUNCTION()
2026 ber_free(ber, 0); in PHP_FUNCTION()
2071 if ((attribute = ldap_first_attribute(ld->link, resultentry->data, &resultentry->ber)) == NULL) { in PHP_FUNCTION()
2099 if (resultentry->ber == NULL) { in PHP_FUNCTION()
2104 if ((attribute = ldap_next_attribute(ld->link, resultentry->data, resultentry->ber)) == NULL) { in PHP_FUNCTION()
2106 if (resultentry->ber != NULL) { in PHP_FUNCTION()
2107 ber_free(resultentry->ber, 0); in PHP_FUNCTION()
2108 resultentry->ber = NULL; in PHP_FUNCTION()
2131 BerElement *ber; in PHP_FUNCTION() local
2145 attribute = ldap_first_attribute(ld->link, resultentry->data, &ber); in PHP_FUNCTION()
2164 attribute = ldap_next_attribute(ld->link, resultentry->data, ber); in PHP_FUNCTION()
2167 if (ber != NULL) { in PHP_FUNCTION()
2168 ber_free(ber, 0); in PHP_FUNCTION()
3606 resultentry->ber = NULL; in PHP_FUNCTION()
3635 resultentry_next->ber = NULL; in PHP_FUNCTION()