php 5.1rc6, oci8, and ldap

From: Date: Mon, 21 Nov 2005 20:00:43 +0000
Subject: php 5.1rc6, oci8, and ldap
Groups: php.general 
Request: Send a blank email to php-general+get-226240@lists.php.net to get a copy of this message
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

« previous php.general (#226240) next »