Lines Matching refs:ld

100 	ldap_linkdata *ld = (ldap_linkdata *)rsrc->ptr;  in ZEND_GET_MODULE()  local
104 ldap_destroy(ld->link); in ZEND_GET_MODULE()
107 zval_ptr_dtor(&ld->rebindproc); in ZEND_GET_MODULE()
110 efree(ld); in ZEND_GET_MODULE()
136 static void _php_ldap_control_to_array(LDAP *ld, LDAPControl* ctrl, zval* array, int request) in _php_ldap_control_to_array() argument
152 rc = ldap_parse_passwordpolicy_control(ld, ctrl, &expire, &grace, &pperr); in _php_ldap_control_to_array()
172 rc = ldap_parse_pageresponse_control(ld, ctrl, &lestimated, &lcookie); in _php_ldap_control_to_array()
235 rc = ldap_parse_sortresponse_control(ld, ctrl, &errcode, &attribute); in _php_ldap_control_to_array()
256 rc = ldap_parse_vlvresponse_control(ld, ctrl, &target, &count, &context, &errcode); in _php_ldap_control_to_array()
282 static int _php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, zval* array) in _php_ldap_control_from_array() argument
339 rc = ldap_create_page_control_value(ld, pagesize, &cookie, &control_value); in _php_ldap_control_from_array()
358 ldap_set_option(ld, LDAP_OPT_RESULT_CODE, &success); in _php_ldap_control_from_array()
361 rc = ldap_create_assertion_control_value(ld, ZSTR_VAL(assert), &control_value); in _php_ldap_control_from_array()
496 rc = ldap_create_sort_control_value(ld, sort_keys, &control_value); in _php_ldap_control_from_array()
562 rc = ldap_create_vlv_control_value(ld, &vlvInfo, &control_value); in _php_ldap_control_from_array()
623 static void _php_ldap_controls_to_array(LDAP *ld, LDAPControl** ctrls, zval* array, int request) in _php_ldap_controls_to_array() argument
638 _php_ldap_control_to_array(ld, *ctrlp, &tmp1, request); in _php_ldap_controls_to_array()
645 static LDAPControl** _php_ldap_controls_from_array(LDAP *ld, zval* array, uint32_t arg_num) in _php_ldap_controls_from_array() argument
663 if (_php_ldap_control_from_array(ld, ctrlp, ctrlarray) == LDAP_SUCCESS) { in _php_ldap_controls_from_array()
996 ldap_linkdata *ld; in PHP_FUNCTION() local
1022 ld = ecalloc(1, sizeof(ldap_linkdata)); in PHP_FUNCTION()
1031 efree(ld); in PHP_FUNCTION()
1050 efree(ld); in PHP_FUNCTION()
1059 efree(ld); in PHP_FUNCTION()
1066 efree(ld); in PHP_FUNCTION()
1072 efree(ld); in PHP_FUNCTION()
1079 ld->link = ldap; in PHP_FUNCTION()
1080 RETURN_RES(zend_register_resource(ld, le_link)); in PHP_FUNCTION()
1119 ldap_linkdata *ld; in PHP_FUNCTION() local
1126 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1131 _set_lderrno(ld->link, LDAP_INVALID_CREDENTIALS); in PHP_FUNCTION()
1137 _set_lderrno(ld->link, LDAP_INVALID_CREDENTIALS); in PHP_FUNCTION()
1150 rc = ldap_sasl_bind_s(ld->link, ldap_bind_dn, LDAP_SASL_SIMPLE, &cred, in PHP_FUNCTION()
1154 rc = ldap_simple_bind_s(ld->link, ldap_bind_dn, ldap_bind_pw); in PHP_FUNCTION()
1173 ldap_linkdata *ld; in PHP_FUNCTION() local
1182 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1187 _set_lderrno(ld->link, LDAP_INVALID_CREDENTIALS); in PHP_FUNCTION()
1193 _set_lderrno(ld->link, LDAP_INVALID_CREDENTIALS); in PHP_FUNCTION()
1199 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 4); in PHP_FUNCTION()
1214 rc = ldap_sasl_bind(ld->link, ldap_bind_dn, LDAP_SASL_SIMPLE, &cred, in PHP_FUNCTION()
1222 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
1252 static php_ldap_bictx *_php_sasl_setdefs(LDAP *ld, char *sasl_mech, char *sasl_realm, char *sasl_au… in _php_sasl_setdefs() argument
1264 ldap_get_option(ld, LDAP_OPT_X_SASL_MECH, &ctx->mech); in _php_sasl_setdefs()
1267 ldap_get_option(ld, LDAP_OPT_X_SASL_REALM, &ctx->realm); in _php_sasl_setdefs()
1270 ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHCID, &ctx->authcid); in _php_sasl_setdefs()
1273 ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHZID, &ctx->authzid); in _php_sasl_setdefs()
1294 static int _php_sasl_interact(LDAP *ld, unsigned flags, void *defaults, void *in) in _php_sasl_interact() argument
1329 ldap_linkdata *ld; in PHP_FUNCTION() local
1344 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1348 ctx = _php_sasl_setdefs(ld->link, sasl_mech, sasl_realm, sasl_authc_id, passwd, sasl_authz_id); in PHP_FUNCTION()
1351 ldap_set_option(ld->link, LDAP_OPT_X_SASL_SECPROPS, props); in PHP_FUNCTION()
1354 …rc = ldap_sasl_interactive_bind_s(ld->link, binddn, ctx->mech, NULL, NULL, LDAP_SASL_QUIET, _php_s… in PHP_FUNCTION()
1370 ldap_linkdata *ld; in PHP_FUNCTION() local
1376 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1432 ldap_linkdata *ld = NULL; in php_ldap_do_search() local
1536 ld = (ldap_linkdata *) zend_fetch_resource_ex(entry, "ldap link", le_link); in php_ldap_do_search()
1537 if (ld == NULL) { in php_ldap_do_search()
1563 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 9); in php_ldap_do_search()
1570 …php_set_opts(ld->link, ldap_sizelimit, ldap_timelimit, ldap_deref, &old_ldap_sizelimit, &old_ldap_… in php_ldap_do_search()
1573 …ldap_search_ext(ld->link, ZSTR_VAL(ldap_base_dn), scope, ZSTR_VAL(ldap_filter), ldap_attrs, ldap_a… in php_ldap_do_search()
1574 lds[i] = ld; in php_ldap_do_search()
1597 ld = (ldap_linkdata *) zend_fetch_resource_ex(link, "ldap link", le_link); in php_ldap_do_search()
1598 if (ld == NULL) { in php_ldap_do_search()
1618 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 9); in php_ldap_do_search()
1625 …php_set_opts(ld->link, ldap_sizelimit, ldap_timelimit, ldap_deref, &old_ldap_sizelimit, &old_ldap_… in php_ldap_do_search()
1628 …errno = ldap_search_ext_s(ld->link, ZSTR_VAL(ldap_base_dn), scope, ZSTR_VAL(ldap_filter), ldap_att… in php_ldap_do_search()
1661 if (ld) { in php_ldap_do_search()
1663 …php_set_opts(ld->link, old_ldap_sizelimit, old_ldap_timelimit, old_ldap_deref, &ldap_sizelimit, &l… in php_ldap_do_search()
1727 ldap_linkdata *ld; in PHP_FUNCTION() local
1734 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1742 RETURN_LONG(ldap_count_entries(ld->link, ldap_result)); in PHP_FUNCTION()
1750 ldap_linkdata *ld; in PHP_FUNCTION() local
1758 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1766 if ((entry = ldap_first_entry(ld->link, ldap_result)) == NULL) { in PHP_FUNCTION()
1782 ldap_linkdata *ld; in PHP_FUNCTION() local
1790 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1797 if ((entry_next = ldap_next_entry(ld->link, resultentry->data)) == NULL) { in PHP_FUNCTION()
1815 ldap_linkdata *ld; in PHP_FUNCTION() local
1828 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1835 ldap = ld->link; in PHP_FUNCTION()
1913 ldap_linkdata *ld; in PHP_FUNCTION() local
1921 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1929 if ((attribute = ldap_first_attribute(ld->link, resultentry->data, &resultentry->ber)) == NULL) { in PHP_FUNCTION()
1944 ldap_linkdata *ld; in PHP_FUNCTION() local
1952 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
1965 if ((attribute = ldap_next_attribute(ld->link, resultentry->data, resultentry->ber)) == NULL) { in PHP_FUNCTION()
1987 ldap_linkdata *ld; in PHP_FUNCTION() local
1998 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2009 attribute = ldap_first_attribute(ld->link, resultentry->data, &ber); in PHP_FUNCTION()
2011 ldap_value = ldap_get_values_len(ld->link, resultentry->data, attribute); in PHP_FUNCTION()
2028 attribute = ldap_next_attribute(ld->link, resultentry->data, ber); in PHP_FUNCTION()
2044 ldap_linkdata *ld; in PHP_FUNCTION() local
2055 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2063 if ((ldap_value_len = ldap_get_values_len(ld->link, resultentry->data, attr)) == NULL) { in PHP_FUNCTION()
2064 …LL, E_WARNING, "Cannot get the value(s) of attribute %s", ldap_err2string(_get_lderrno(ld->link))); in PHP_FUNCTION()
2085 ldap_linkdata *ld; in PHP_FUNCTION() local
2093 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2101 text = ldap_get_dn(ld->link, resultentry->data); in PHP_FUNCTION()
2178 ldap_linkdata *ld; in php_ldap_do_modify() local
2194 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in php_ldap_do_modify()
2280 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 4); in php_ldap_do_modify()
2290 i = ldap_add_ext(ld->link, dn, ldap_mods, lserverctrls, NULL, &msgid); in php_ldap_do_modify()
2292 i = ldap_add_ext_s(ld->link, dn, ldap_mods, lserverctrls, NULL); in php_ldap_do_modify()
2298 i = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_modify()
2310 i = ldap_modify_ext(ld->link, dn, ldap_mods, lserverctrls, NULL, &msgid); in php_ldap_do_modify()
2312 i = ldap_modify_ext_s(ld->link, dn, ldap_mods, lserverctrls, NULL); in php_ldap_do_modify()
2318 i = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_modify()
2414 ldap_linkdata *ld; in php_ldap_do_delete() local
2425 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in php_ldap_do_delete()
2430 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 3); in php_ldap_do_delete()
2438 rc = ldap_delete_ext(ld->link, dn, lserverctrls, NULL, &msgid); in php_ldap_do_delete()
2440 rc = ldap_delete_ext_s(ld->link, dn, lserverctrls, NULL); in php_ldap_do_delete()
2447 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_delete()
2527 ldap_linkdata *ld; in PHP_FUNCTION() local
2568 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2793 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 4); in PHP_FUNCTION()
2801 if ((i = ldap_modify_ext_s(ld->link, dn, ldap_mods, lserverctrls, NULL)) != LDAP_SUCCESS) { in PHP_FUNCTION()
2844 ldap_linkdata *ld; in PHP_FUNCTION() local
2850 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2854 RETURN_LONG(_get_lderrno(ld->link)); in PHP_FUNCTION()
2875 ldap_linkdata *ld; in PHP_FUNCTION() local
2882 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2886 ld_errno = _get_lderrno(ld->link); in PHP_FUNCTION()
2899 ldap_linkdata *ld; in PHP_FUNCTION() local
2908 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2913 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 5); in PHP_FUNCTION()
2923 errno = ldap_compare_ext_s(ld->link, dn, attr, &lvalue, lserverctrls, NULL); in PHP_FUNCTION()
2953 ldap_linkdata *ld; in PHP_FUNCTION() local
2960 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
2995 if (ldap_get_option(ld->link, option, &val)) { in PHP_FUNCTION()
3005 if (ldap_get_option(ld->link, LDAP_OPT_NETWORK_TIMEOUT, (void *) &timeout)) { in PHP_FUNCTION()
3022 if (ldap_get_option(ld->link, LDAP_X_OPT_CONNECT_TIMEOUT, &timeout)) { in PHP_FUNCTION()
3033 if (ldap_get_option(ld->link, LDAP_OPT_TIMEOUT, (void *) &timeout)) { in PHP_FUNCTION()
3083 if (ldap_get_option(ld->link, option, &val) || val == NULL || *val == '\0') { in PHP_FUNCTION()
3097 if (ldap_get_option(ld->link, option, &ctrls) || ctrls == NULL) { in PHP_FUNCTION()
3103 _php_ldap_controls_to_array(ld->link, ctrls, retval, 1); in PHP_FUNCTION()
3120 ldap_linkdata *ld; in PHP_FUNCTION() local
3131 if ((ld = (ldap_linkdata *)zend_fetch_resource_ex(link, "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3134 ldap = ld->link; in PHP_FUNCTION()
3302 ldap_linkdata *ld; in PHP_FUNCTION() local
3313 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3321 rc = ldap_parse_result(ld->link, ldap_result, &lerrcode, in PHP_FUNCTION()
3337 _php_ldap_controls_to_array(ld->link, lserverctrls, serverctrls, 0); in PHP_FUNCTION()
3377 ldap_linkdata *ld; in PHP_FUNCTION() local
3387 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3395 rc = ldap_parse_extended_result(ld->link, ldap_result, in PHP_FUNCTION()
3433 ldap_linkdata *ld; in PHP_FUNCTION() local
3440 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3448 RETURN_LONG(ldap_count_references(ld->link, ldap_result)); in PHP_FUNCTION()
3456 ldap_linkdata *ld; in PHP_FUNCTION() local
3464 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3472 if ((entry = ldap_first_reference(ld->link, ldap_result)) == NULL) { in PHP_FUNCTION()
3488 ldap_linkdata *ld; in PHP_FUNCTION() local
3496 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3504 if ((entry_next = ldap_next_reference(ld->link, resultentry->data)) == NULL) { in PHP_FUNCTION()
3521 ldap_linkdata *ld; in PHP_FUNCTION() local
3529 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3537 …if (ldap_parse_reference(ld->link, resultentry->data, &lreferrals, NULL /* &serverctrls */, 0) != … in PHP_FUNCTION()
3564 ldap_linkdata *ld; in php_ldap_do_rename() local
3576 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in php_ldap_do_rename()
3586 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 6); in php_ldap_do_rename()
3594 rc = ldap_rename(ld->link, dn, newrdn, newparent, deleteoldrdn, lserverctrls, NULL, &msgid); in php_ldap_do_rename()
3596 rc = ldap_rename_s(ld->link, dn, newrdn, newparent, deleteoldrdn, lserverctrls, NULL); in php_ldap_do_rename()
3612 rc = ldap_modrdn2_s(ld->link, dn, newrdn, deleteoldrdn); in php_ldap_do_rename()
3618 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in php_ldap_do_rename()
3659 ldap_linkdata *ld; in PHP_FUNCTION() local
3666 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3670 if (((rc = ldap_set_option(ld->link, LDAP_OPT_PROTOCOL_VERSION, &protocol)) != LDAP_SUCCESS) || in PHP_FUNCTION()
3671 ((rc = ldap_start_tls_s(ld->link, NULL, NULL)) != LDAP_SUCCESS) in PHP_FUNCTION()
3687 ldap_linkdata *ld; in _ldap_rebind_proc() local
3693 ld = (ldap_linkdata *) zend_fetch_resource_ex(cb_link, "ldap link", le_link); in _ldap_rebind_proc()
3696 if (ld == NULL || Z_ISUNDEF(ld->rebindproc)) { in _ldap_rebind_proc()
3704 …if (call_user_function(EG(function_table), NULL, &ld->rebindproc, &cb_retval, 2, cb_args) == SUCCE… in _ldap_rebind_proc()
3722 ldap_linkdata *ld; in PHP_FUNCTION() local
3728 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3734 if (!Z_ISUNDEF(ld->rebindproc)) { in PHP_FUNCTION()
3735 zval_ptr_dtor(&ld->rebindproc); in PHP_FUNCTION()
3736 ZVAL_UNDEF(&ld->rebindproc); in PHP_FUNCTION()
3737 ldap_set_rebind_proc(ld->link, NULL, NULL); in PHP_FUNCTION()
3743 if (Z_ISUNDEF(ld->rebindproc)) { in PHP_FUNCTION()
3744 ldap_set_rebind_proc(ld->link, _ldap_rebind_proc, (void *) link); in PHP_FUNCTION()
3746 zval_ptr_dtor(&ld->rebindproc); in PHP_FUNCTION()
3749 ZVAL_COPY(&ld->rebindproc, &fci.function_name); in PHP_FUNCTION()
3896 ldap_linkdata *ld; in PHP_FUNCTION() local
3905 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
3917 lserverctrls = _php_ldap_controls_from_array(ld->link, serverctrls, 4); in PHP_FUNCTION()
3926 rc = ldap_extended_operation_s(ld->link, ZSTR_VAL(reqoid), in PHP_FUNCTION()
3960 rc = ldap_extended_operation(ld->link, ZSTR_VAL(reqoid), in PHP_FUNCTION()
3971 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
4000 ldap_linkdata *ld; in PHP_FUNCTION() local
4008 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4015 if (ldap_create_passwordpolicy_control(ld->link, &ctrl) == LDAP_SUCCESS) { in PHP_FUNCTION()
4021 rc = ldap_passwd(ld->link, &luser, in PHP_FUNCTION()
4037 rc = ldap_result(ld->link, msgid, 1 /* LDAP_MSG_ALL */, NULL, &ldap_res); in PHP_FUNCTION()
4039 rc = _get_lderrno(ld->link); in PHP_FUNCTION()
4045 rc = ldap_parse_passwd(ld->link, ldap_res, &lgenpasswd); in PHP_FUNCTION()
4052 …rc = ldap_parse_result(ld->link, ldap_res, &err, NULL, &errmsg, NULL, (myargcount > 4 ? &lserverct… in PHP_FUNCTION()
4060 _php_ldap_controls_to_array(ld->link, lserverctrls, serverctrls, 0); in PHP_FUNCTION()
4097 ldap_linkdata *ld; in PHP_FUNCTION() local
4104 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4109 rc = ldap_whoami_s(ld->link, &lauthzid, NULL, NULL); in PHP_FUNCTION()
4135 ldap_linkdata *ld; in PHP_FUNCTION() local
4142 if ((ld = (ldap_linkdata *)zend_fetch_resource(Z_RES_P(link), "ldap link", le_link)) == NULL) { in PHP_FUNCTION()
4148 rc = ldap_refresh_s(ld->link, &ldn, lttl, &newttl, NULL, NULL); in PHP_FUNCTION()