[Date Prev][Date Next]
Re: LDAP 2.0 CVS and php4 ...
On Fri, Aug 25, 2000 at 11:15:56AM -0700, Kurt D. Zeilenga wrote:
> At 10:46 AM 8/25/00 -0700, Anthony Brock wrote:
> >While attempting to compile an Apache web server with an ldap (2.0cvs) enabled php4 (the latest version off their web site), I encountered a minor but annoying error. Basically, the php4 source code references a function as:
> >ldap_get_lderrno(ldap, NULL, NULL)
> We don't provide this function. It's likely the php4 source code
> needs to be updated to be compatible with 2.0 API which is based
> upon the (expired) IETF LDAPext LDAP C API I-D.
> >php4 compiles without errors using this function,
> >but when linking with the Apache web server, I get a linker error. If I change all references from the above to:
> >ldap_result2error(ldap, NULL, NULL)
> >it appears to function normally. Is this the correct substitution?
> no. Use ldap_get_option(ldap, LDAP_OPT_ERROR_NUMBER, &lderr );
> >Also, is this a php4 error, or should ldap-2.0 have a macro to fix this?
> Neither. PHP was likely designed to support the Netscape/Mozilla API
> and/or the OpenLDAP 1.x/U-MICH 3.3 API. PHP likely needs to be updated
> to support the OpenLDAP 2.x.
Yes, I've fixed the error checking in PHP now, there may be some other
things that need be done, but at least it compiles and works with all
PHP 4.0.2 will probably be released on Monday.