From:             cb at visionation dot com
Operating system: OS X
PHP version:      4.3.4
PHP Bug Type:     LDAP related
Bug description:  LDAP queries not working

Description:
------------
Apache: 1.3.29 (Darwin) 

mod_ssl: 2.8.16 

OpenSSL: 0.9.7b  

PHP 4.3.4



'./configure' '--prefix=/usr/local/php'
'--with-config-file-path=/usr/local/php/lib' '--with-apxs'
'--with-iconv=/usr/local/php' '--with-openssl=/usr' '--with-zlib=/usr'
'--with-mysql'
'--with-pgsql=/Users/marc/cvs/entropy/php-module/build/postgresql-build'
'--enable-cgi' '--with-gd' '--with-png-dir=/usr/local/php'
'--with-freetype-dir=/usr/local/php' '--with-t1lib=/usr/local/php'
'--with-jpeg-dir=/usr/local/php' '--with-tiff-dir=/usr/local/php'
'--with-curl=/usr/local/php' '--with-mcal=/usr/local/php'
'--with-mcrypt=/usr/local/php' '--with-mhash=/usr/local/php'
'--with-pdflib=/usr/local/php' '--with-imap=../imap-2002d'
'--with-imap-ssl=/usr' '--with-expat-dir=/usr/local/php'
'--with-gettext=/usr/local/php' '--with-dom=/usr/local/php'
'--with-dom-xslt=/usr/local/php' '--with-dom-exslt=/usr/local/php'
'--with-xslt-sablot=/usr/local/php' '--with-mssql=/usr/local/php'
'--with-fbsql=/Users/marc/cvs/entropy/php-module/build/frontbase-build/Library/FrontBase'
'--enable-xslt' '--with-ldap' '--with-xmlrpc' '--with-xml' '--with-iodbc'
'--enable-sockets' '--enable-dbx' '--enable-dbase' '--enable-trans-sid'
'--enable-exif' '--enable-wddx' '--enable-ftp' '--enable-mbstring' 







I have some LDAP queries happening within my pages.  These worked until
Monday morning.  Now, when I have even the connect to LDAP function in my
code the page cuts off completely.



>From the apache logs I get this error when trying to connect:

[Tue Apr 13 12:48:10 2004] [notice] child pid 8653 exit signal
Segmentation fault (11)



Here's what I'm getting in the slapd.log:

Apr 13 13:05:46 homer slapd[8557]: <= bdb_equality_candidates: (ou)
index_param failed (18)



And there are no errors in my php error log.









Reproduce code:
---------------
Here's the code that I use to test what's happening:





echo "<h3>LDAP query test</h3>";

echo "Connecting ...";

 $ldapserver = "localhost";

// $ldapserver = "alfred.kenwoodgroup.com";

echo "ldapserver";



phpinfo();



           $ds=ldap_connect($ldapserver);  // must be a valid LDAP
server!

echo "ds $ds";

           if ($ds) {

//ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);                     
                   $r=ldap_bind($ds);   // this is an "anonymous" bind,
typically

             if ($r) {

               echo "bounded.";

              }

           } else {

               echo "<h4>Unable to connect to LDAP server</h4>";

               return 0;

           }







Expected result:
----------------
I expect to see the echo responses printing and the page not hang.  This
worked until recently.



Actual result:
--------------
this is what is printing out...



LDAP query test 



connecting... ldapserver



the phpinfo stuff



and then it hangs.....

-- 
Edit bug report at http://bugs.php.net/?id=27983&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27983&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27983&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27983&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27983&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27983&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27983&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27983&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27983&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27983&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27983&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27983&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27983&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27983&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27983&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27983&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27983&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27983&r=float

Reply via email to