Lines Matching refs:ber
89 BerElement *ber; member
216 if (entry->ber != NULL) { in ldap_result_entry_free_obj()
217 ber_free(entry->ber, 0); in ldap_result_entry_free_obj()
218 entry->ber = NULL; in ldap_result_entry_free_obj()
297 BerElement *ber; in _php_ldap_control_to_array() local
300 ber = ber_init(&ctrl->ldctl_value); in _php_ldap_control_to_array()
301 if (ber == NULL) { in _php_ldap_control_to_array()
303 } else if (ber_scanf(ber, "{m{" /*}}*/, &bv) == LBER_ERROR) { in _php_ldap_control_to_array()
311 while (ber_scanf(ber, "{m" /*}*/, &bv) != LBER_ERROR) { in _php_ldap_control_to_array()
316 if (ber_scanf(ber, "[W]", &vals) == LBER_ERROR || vals == NULL) in _php_ldap_control_to_array()
332 if (ber != NULL) { in _php_ldap_control_to_array()
333 ber_free(ber, 1); in _php_ldap_control_to_array()
414 BerElement *ber = NULL; in _php_ldap_control_from_array() local
479 ber = ber_alloc_t(LBER_USE_DER); in _php_ldap_control_from_array()
480 if (ber == NULL) { in _php_ldap_control_from_array()
489 if (ldap_put_vrFilter(ber, ZSTR_VAL(tmpstring)) == -1) { in _php_ldap_control_from_array()
492 } else if (ber_flatten2(ber, &control_value, control_value_alloc) == -1) { in _php_ldap_control_from_array()
503 ber = ber_alloc_t(LBER_USE_DER); in _php_ldap_control_from_array()
505 if (ber == NULL) { in _php_ldap_control_from_array()
534 ber_init2( ber, NULL, LBER_USE_DER ); in _php_ldap_control_from_array()
536 if (ber_printf(ber, "{v}", ldap_attrs) == -1) { in _php_ldap_control_from_array()
541 err = ber_flatten2(ber, &control_value, control_value_alloc); in _php_ldap_control_from_array()
704 if (ber != NULL) { in _php_ldap_control_from_array()
705 ber_free(ber, 1); in _php_ldap_control_from_array()
1723 resultentry->ber = NULL; in PHP_FUNCTION()
1752 resultentry_next->ber = NULL; in PHP_FUNCTION()
1767 BerElement *ber; in PHP_FUNCTION() local
1804 attribute = ldap_first_attribute(ldap, ldap_result_entry, &ber); in PHP_FUNCTION()
1826 attribute = ldap_next_attribute(ldap, ldap_result_entry, ber); in PHP_FUNCTION()
1829 if (ber != NULL) { in PHP_FUNCTION()
1830 ber_free(ber, 0); in PHP_FUNCTION()
1875 if ((attribute = ldap_first_attribute(ld->link, resultentry->data, &resultentry->ber)) == NULL) { in PHP_FUNCTION()
1903 if (resultentry->ber == NULL) { in PHP_FUNCTION()
1908 if ((attribute = ldap_next_attribute(ld->link, resultentry->data, resultentry->ber)) == NULL) { in PHP_FUNCTION()
1910 if (resultentry->ber != NULL) { in PHP_FUNCTION()
1911 ber_free(resultentry->ber, 0); in PHP_FUNCTION()
1912 resultentry->ber = NULL; in PHP_FUNCTION()
1935 BerElement *ber; in PHP_FUNCTION() local
1949 attribute = ldap_first_attribute(ld->link, resultentry->data, &ber); in PHP_FUNCTION()
1968 attribute = ldap_next_attribute(ld->link, resultentry->data, ber); in PHP_FUNCTION()
1971 if (ber != NULL) { in PHP_FUNCTION()
1972 ber_free(ber, 0); in PHP_FUNCTION()
3422 resultentry->ber = NULL; in PHP_FUNCTION()
3451 resultentry_next->ber = NULL; in PHP_FUNCTION()