Greetings,

I am trying to compile PHP 5.1RC6 with support for both ldap and the
oci8 extension (using the Oracle Instant Client).  To get this working
under PHP4, I had to modify the Apache (1.3) environment like so:

   LD_LIBRARY_PATH="/usr/lib:${ORACLE_HOME}"
   LD_PRELOAD="libldap.so.2:libclntsh.so.10.1"

Given those settings (and a valid ORACLE_HOME location), the following
code works on a PHP4 build:

   $res = ldap_connect("ldaps://$ldapserver");
   ldap_bind($res, $bindrdn, $bindpw);

But under PHP5, running that code gives the error:

   Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Out
   of memory in <filename> on line 3

The oci8 library functions correctly.  Does anyone have a working setup
for this, or any thoughts on what else I might try?

Thanks,

-Robert

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to