|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10789 LDAP and OCI8 support don't work together
Submitted: 2001-05-10 10:00 UTC Modified: 2001-05-11 03:36 UTC
From: horakm at mail dot sce dot cz Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.0.5 OS: Linux 2.2.17
Private report: No CVE-ID: None
 [2001-05-10 10:00 UTC] horakm at mail dot sce dot cz
I have problem with running together LDAP and OCI8 support in PHP. Functions ldap_add() and ldap_modify() causes apache proces to generate segmentation fault.

Here is my configure line:

ORACLE_HOME=/usr/local/oraclient/8.1.6 \
./configure \
  --with-mysql=shared,/usr \
  --with-dbase \
  --enable-sysvshm --enable-sysvsem \
  --with-config-file-path=/etc/httpd \
  --with-gdbm=/usr \
  --disable-debug \
  --with-oci8=shared \
  --with-gd=shared \
    --with-ttf \
    --with-jpeg-dir \
  --with-ldap=shared \
  --with-imap=shared \
    --with-kerberos \

I built all modules as shared. Here is a part of my php.ini

oci8 works fine, ldap_add() and ldap_modify() crash.
If I comment out extension, ldap works also fine.

I added --enable-versioning to configure line and if I tried to start Apache server, it exited with message in the log:
[notice] caught SIGTERM, shutting down

I found a workaround - comment out in the php.ini file, start Apache, uncomment the line and do apachectl restart.
Then everything works.

I'm sorry I didn't attach any backtrace, but I wasn't able to get any.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-10 11:41 UTC]
oracle 8.1.x has it's own ldap implementation. you _need_ 
to use that. do so by specifying $ORACLE_HOME as your ldap 


 [2001-05-11 03:36 UTC] horakm at mail dot sce dot cz
Yes, it works. Thank you very much. Why I must install Oracle _server_ in order to get ldap.h? Horrible.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 25 23:01:30 2024 UTC