|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44937 Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Out of mem
Submitted: 2008-05-07 18:49 UTC Modified: 2013-10-16 04:25 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: aalvarez at n2bsolutions dot com Assigned: sixd (profile)
Status: Closed Package: OCI8 related
PHP Version: 5.2.6 OS: Ubuntu 7.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: aalvarez at n2bsolutions dot com
New email:
PHP Version: OS:


 [2008-05-07 18:49 UTC] aalvarez at n2bsolutions dot com
I have Apache2.2.6 running php5.2.6 with support for:

CFLAGS=' -O3 -I/usr/src/instantclient_11_1/sdk/include -I/usr/lib32 -I/usr/include -I/usr/include/sasl' \
CXXFLAGS='-I/usr/src/instantclient_11_1/sdk/include -I/usr/lib32 -I/usr/include -I/usr/include/sasl' \
'./configure' \
'--includedir=/usr/src/instantclient_11_1/sdk/include' \
'--includedir=/usr/src/instantclient_11_1/sdk' \
'--with-oci8=/usr/src/instantclient_11_1/' \
'--with-jpge' \
'--with-jpeg-dir' \
'--with-pgsql' \
'--with-gd' \
'--with-png-dir' \
'--with-zlib-dir' \
'--with-apxs2=/usr/local/apache226/bin/apxs' \
'--with-openssl' \
'--with-openssl' \
'--with-tiff' \
'--without-pdo-oci' \
'--enable-sigchild' \
'--enable-soap' \
'--enable-ftp' \
'--with-curl' \
'--with-curlwrappers' \
'--with-ldap' \

I know where is the problem but i don?t know how to fix it...

When i change ennvars like that disabling Oracle oci8 lib
all works perfectly :-/

export ORACLE_HOME=/usr/src/instantclient_11_1
#export TNS_ADMIN=$ORACLE_HOME/network/admin
#export TWO_TASK=$ORACLE_HOME/network/admin/tnsnames.ora
export LD_PRELOAD=/usr/lib/

It doesn?t matter if i load first the ....

Any Ideas?
Thxs a lots

Reproduce code:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Out of memory in /home/www/web1/web/ss_dev/__fvalida.php

Expected result:
Ok if the user have valid password in may OpenLDAP 2.2.3 server
it works without oracle LD_PRELOAD but ... i need it too :-(


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-09 14:36 UTC]
Oracle libs used to have their own implementation for ldap funcs. 
So I guess you just need to compile PHP ldap extension to use those libs instead of openldap. I don't know if that instant client thing has the same issue, so assigning to the Oracle guru. :)
 [2008-05-10 07:50 UTC] aalvarez at n2bsolutions dot com
Ok, I will try to compile with the ldap lib for oracle.
Now i have two apache+php working together :-/ one with oci8 and another 
one with ldap ....

 [2012-10-26 06:03 UTC]
-Status: Assigned +Status: Suspended -Package: LDAP related +Package: OCI8 related
 [2012-10-26 06:03 UTC]

I'm suspending this bug pending the merge of that patch.
 [2013-10-16 04:25 UTC]
-Status: Suspended +Status: Closed
 [2013-10-16 04:25 UTC]
The configuration changes in have been merged. However I still recommend building PHP without OCI8, and then adding it as a shared extension.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 07:01:29 2024 UTC