We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c978111 commit 890c2f0Copy full SHA for 890c2f0
ext/ldap/ldap.c
@@ -984,8 +984,6 @@ PHP_FUNCTION(ldap_connect)
984
RETURN_FALSE;
985
}
986
987
- object_init_ex(return_value, ldap_link_ce);
988
- ld = Z_LDAP_LINK_P(return_value);
989
990
{
991
int rc = LDAP_SUCCESS;
@@ -1015,6 +1013,8 @@ PHP_FUNCTION(ldap_connect)
1015
1013
LDAPG(tls_newctx) = false;
1016
1014
1017
#endif
+ object_init_ex(return_value, ldap_link_ce);
+ ld = Z_LDAP_LINK_P(return_value);
1018
1019
#ifdef LDAP_API_FEATURE_X_OPENLDAP
1020
/* ldap_init() is deprecated, use ldap_initialize() instead.
0 commit comments