diff options
author | Côme Bernigaud <mcmic@php.net> | 2015-07-06 14:54:04 +0200 |
---|---|---|
committer | Côme Bernigaud <mcmic@php.net> | 2015-07-06 14:54:04 +0200 |
commit | 022068342b5da0b97be1b5f3bb7b018263bd6437 (patch) | |
tree | 911990706b7c157aacbb6d1e67601e84f0d2d325 /ext/ldap/ldap.c | |
parent | 42f7e4c0445f3492396e05db4996cbdce362c73e (diff) | |
download | php-git-022068342b5da0b97be1b5f3bb7b018263bd6437.tar.gz |
Attempt at falling back on ldap_find_control for Mac OS
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r-- | ext/ldap/ldap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index e2bcd17522..9c9e28a3d4 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -70,6 +70,14 @@ #define PHP_LDAP_ESCAPE_FILTER 0x01 #define PHP_LDAP_ESCAPE_DN 0x02 +#ifndef HAVE_LDAP_CONTROL_FIND +LDAPControl *ldap_control_find( const char *oid, LDAPControl **ctrls, LDAPControl ***nextctrlp) +{ + assert(nextctrlp == NULL); + return ldap_find_control(oid, ctrls); +} +#endif + typedef struct { LDAP *link; #if defined(HAVE_3ARG_SETREBINDPROC) |