php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6150 Server Hangup when LDAP and mysql both compiled in
Submitted: 2000-08-14 14:41 UTC Modified: 2000-08-16 04:28 UTC
From: jbrindle at mail dot snu dot edu Assigned: sniper (profile)
Status: Closed Package: LDAP related
PHP Version: 4.0.1pl2 OS: Slackware 7.0
Private report: No CVE-ID: None
 [2000-08-14 14:41 UTC] jbrindle at mail dot snu dot edu
Basically using either the internal mysql api, or my external (3.23.22) mysql, and LDAP at the same time causes any page that has a mysql_connect() to give a Server Hangup, i assume it's segfaulting, but i get absolutely nothing in the logs. When i take LDAP out mysql works as before, i've tried 2 ldap libs, openldap 1.2.11, and the ldap drivers available at Novell's developer site. Both had the same result.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-14 18:04 UTC] sniper@php.net
Please attach your configure lines for openldap, mysql , apache and php into this
bug report. And to be sure, add also your php.ini.

--Jani
 [2000-08-14 18:10 UTC] sniper@php.net
Forgot this one: attach backtrace also if it does segfault.
And a minimal reproducing script, of course.

Here's info how to generate backtrace:

http://bugs.php.net/bugs-generating-backtrace.php


--Jani

 [2000-08-15 04:18 UTC] sniper@php.net
User feedback:
-----------

'./configure' '--with-apache=../apache_1.3.12'
'--with-mysql=/usr/local/mysql' '--with-ldap' '--with-gd=../gd-1.8.3'
'--with-jpeg-dir=/usr' '--with-xml' '--enable-ftp' '--enable-track-vars'
'--enable-trans-sid' '--disable-pear' '--disable-debug'

and ANYTHING with mysql_connect() would cause it, even
<? mysql_connect("localhost", "test", "test"); ?>
would cause it.

The server is no longer compiled with ldap support, as it caused problems
and i had some amount of downtime which was not good, if i *must* recompile
to get a backtrace i guess i can, but i'd prefer to keep the downtime to
none ;)

----

If possible, configure the system for backtrace as follows:

./configure  --with-apache=../apache_1.3.12 --with-mysql=/usr/local/mysql --with-ldap=/path/to/ldaplibs --enable-debug --disable-pear


--Jani


 [2000-08-15 12:59 UTC] joey@php.net
Does it make a difference whether ZendOptimizer is disabled or not?

 [2000-08-15 13:00 UTC] joey@php.net
Oops, probably should have left that as "assigned". Sorry, sniper.
 [2000-08-16 04:28 UTC] sniper@php.net
Closed by user request. (broken ldap libraries)

--Jani
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Oct 02 16:05:51 2022 UTC