Lines Matching refs:ber

88 	BerElement  *ber;  member
212 if (entry->ber != NULL) { in ldap_result_entry_free_obj()
213 ber_free(entry->ber, 0); in ldap_result_entry_free_obj()
214 entry->ber = NULL; in ldap_result_entry_free_obj()
293 BerElement *ber; in _php_ldap_control_to_array() local
296 ber = ber_init(&ctrl->ldctl_value); in _php_ldap_control_to_array()
297 if (ber == NULL) { in _php_ldap_control_to_array()
299 } else if (ber_scanf(ber, "{m{" /*}}*/, &bv) == LBER_ERROR) { in _php_ldap_control_to_array()
307 while (ber_scanf(ber, "{m" /*}*/, &bv) != LBER_ERROR) { in _php_ldap_control_to_array()
312 if (ber_scanf(ber, "[W]", &vals) == LBER_ERROR || vals == NULL) in _php_ldap_control_to_array()
328 if (ber != NULL) { in _php_ldap_control_to_array()
329 ber_free(ber, 1); in _php_ldap_control_to_array()
410 BerElement *ber = NULL; in _php_ldap_control_from_array() local
475 ber = ber_alloc_t(LBER_USE_DER); in _php_ldap_control_from_array()
476 if (ber == NULL) { in _php_ldap_control_from_array()
485 if (ldap_put_vrFilter(ber, ZSTR_VAL(tmpstring)) == -1) { in _php_ldap_control_from_array()
488 } else if (ber_flatten2(ber, &control_value, control_value_alloc) == -1) { in _php_ldap_control_from_array()
499 ber = ber_alloc_t(LBER_USE_DER); in _php_ldap_control_from_array()
501 if (ber == NULL) { in _php_ldap_control_from_array()
530 ber_init2( ber, NULL, LBER_USE_DER ); in _php_ldap_control_from_array()
532 if (ber_printf(ber, "{v}", ldap_attrs) == -1) { in _php_ldap_control_from_array()
537 err = ber_flatten2(ber, &control_value, control_value_alloc); in _php_ldap_control_from_array()
701 if (ber != NULL) { in _php_ldap_control_from_array()
702 ber_free(ber, 1); in _php_ldap_control_from_array()
1778 resultentry->ber = NULL; in PHP_FUNCTION()
1807 resultentry_next->ber = NULL; in PHP_FUNCTION()
1822 BerElement *ber; in PHP_FUNCTION() local
1859 attribute = ldap_first_attribute(ldap, ldap_result_entry, &ber); in PHP_FUNCTION()
1881 attribute = ldap_next_attribute(ldap, ldap_result_entry, ber); in PHP_FUNCTION()
1884 if (ber != NULL) { in PHP_FUNCTION()
1885 ber_free(ber, 0); in PHP_FUNCTION()
1930 if ((attribute = ldap_first_attribute(ld->link, resultentry->data, &resultentry->ber)) == NULL) { in PHP_FUNCTION()
1958 if (resultentry->ber == NULL) { in PHP_FUNCTION()
1963 if ((attribute = ldap_next_attribute(ld->link, resultentry->data, resultentry->ber)) == NULL) { in PHP_FUNCTION()
1965 if (resultentry->ber != NULL) { in PHP_FUNCTION()
1966 ber_free(resultentry->ber, 0); in PHP_FUNCTION()
1967 resultentry->ber = NULL; in PHP_FUNCTION()
1990 BerElement *ber; in PHP_FUNCTION() local
2004 attribute = ldap_first_attribute(ld->link, resultentry->data, &ber); in PHP_FUNCTION()
2023 attribute = ldap_next_attribute(ld->link, resultentry->data, ber); in PHP_FUNCTION()
2026 if (ber != NULL) { in PHP_FUNCTION()
2027 ber_free(ber, 0); in PHP_FUNCTION()
3396 resultentry->ber = NULL; in PHP_FUNCTION()
3425 resultentry_next->ber = NULL; in PHP_FUNCTION()