Re: Call to ldap_connect() returns always false

From: Date: Thu, 11 Jan 2001 19:18:20 +0000
Subject: Re: Call to ldap_connect() returns always false
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-43797@lists.php.net to get a copy of this message
On Wed, Jan 10, 2001 at 09:22:10PM +0100, Stig Venaas wrote: > On Wed, Jan 10, 2001 at 04:51:51PM +0100, Uwe Steinmann wrote: > > Then I fired up gdb, set a breakpoint right before ldap_open() > > in php_if_ldap_connect() and run httpd with -X -f <conf.file>. > > Steping into ldap_open() didn't work, though openldap was compiled > > with --enable-debug. BTW, listing the openldap file in which > > ldap_open() is defined works. Setting a breakpoint in ldap_open() > > didn't have any effect which supports my theory that ldap_open() > > isn't called for some mystical reason. > > My first guess would be that you have some other library with > ldap_open(), one such might be Oracle. If any libraries are > loaded at runtime you can see it using strace. It could be that That was the reason. libclntsh.so from Oracle was loaded before libldap.so. By simply switching the two it works. I wonder if that is the way to fix such problems? Thanks very much. > Well, just some thoughts, I don't know really. But good enough to solve my problems :-) Uwe -- Uwe.Steinmann@fernuni-hagen.de Tel: +2331 987 4528 Fax: +2331 987 375

« previous php.dev (#43797) next »