Lines Matching refs:ber

89 	BerElement  *ber;  member
213 if (entry->ber != NULL) { in ldap_result_entry_free_obj()
214 ber_free(entry->ber, 0); in ldap_result_entry_free_obj()
215 entry->ber = NULL; in ldap_result_entry_free_obj()
294 BerElement *ber; in _php_ldap_control_to_array() local
297 ber = ber_init(&ctrl->ldctl_value); in _php_ldap_control_to_array()
298 if (ber == NULL) { in _php_ldap_control_to_array()
300 } else if (ber_scanf(ber, "{m{" /*}}*/, &bv) == LBER_ERROR) { in _php_ldap_control_to_array()
308 while (ber_scanf(ber, "{m" /*}*/, &bv) != LBER_ERROR) { in _php_ldap_control_to_array()
313 if (ber_scanf(ber, "[W]", &vals) == LBER_ERROR || vals == NULL) in _php_ldap_control_to_array()
329 if (ber != NULL) { in _php_ldap_control_to_array()
330 ber_free(ber, 1); in _php_ldap_control_to_array()
411 BerElement *ber = NULL; in _php_ldap_control_from_array() local
476 ber = ber_alloc_t(LBER_USE_DER); in _php_ldap_control_from_array()
477 if (ber == NULL) { in _php_ldap_control_from_array()
486 if (ldap_put_vrFilter(ber, ZSTR_VAL(tmpstring)) == -1) { in _php_ldap_control_from_array()
489 } else if (ber_flatten2(ber, &control_value, control_value_alloc) == -1) { in _php_ldap_control_from_array()
500 ber = ber_alloc_t(LBER_USE_DER); in _php_ldap_control_from_array()
502 if (ber == NULL) { in _php_ldap_control_from_array()
531 ber_init2( ber, NULL, LBER_USE_DER ); in _php_ldap_control_from_array()
533 if (ber_printf(ber, "{v}", ldap_attrs) == -1) { in _php_ldap_control_from_array()
538 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()
1797 resultentry->ber = NULL; in PHP_FUNCTION()
1826 resultentry_next->ber = NULL; in PHP_FUNCTION()
1841 BerElement *ber; in PHP_FUNCTION() local
1878 attribute = ldap_first_attribute(ldap, ldap_result_entry, &ber); in PHP_FUNCTION()
1900 attribute = ldap_next_attribute(ldap, ldap_result_entry, ber); in PHP_FUNCTION()
1903 if (ber != NULL) { in PHP_FUNCTION()
1904 ber_free(ber, 0); in PHP_FUNCTION()
1949 if ((attribute = ldap_first_attribute(ld->link, resultentry->data, &resultentry->ber)) == NULL) { in PHP_FUNCTION()
1977 if (resultentry->ber == NULL) { in PHP_FUNCTION()
1982 if ((attribute = ldap_next_attribute(ld->link, resultentry->data, resultentry->ber)) == NULL) { in PHP_FUNCTION()
1984 if (resultentry->ber != NULL) { in PHP_FUNCTION()
1985 ber_free(resultentry->ber, 0); in PHP_FUNCTION()
1986 resultentry->ber = NULL; in PHP_FUNCTION()
2009 BerElement *ber; in PHP_FUNCTION() local
2023 attribute = ldap_first_attribute(ld->link, resultentry->data, &ber); in PHP_FUNCTION()
2042 attribute = ldap_next_attribute(ld->link, resultentry->data, ber); in PHP_FUNCTION()
2045 if (ber != NULL) { in PHP_FUNCTION()
2046 ber_free(ber, 0); in PHP_FUNCTION()
3496 resultentry->ber = NULL; in PHP_FUNCTION()
3525 resultentry_next->ber = NULL; in PHP_FUNCTION()