For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > November 2005 > php 5.1rc6, oci8, and ldap









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author php 5.1rc6, oci8, and ldap
Robert Hopson

2005-11-21, 9:56 pm

Hello, I sent this to php-general earlier before I saw that this list
existed.

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com