php3-list | 199807
Date: 07/14/98
- Next message: Chad Cunningham: "[PHP3] conditional operators"
- Previous message: Zeev Suraski: "RE: [PHP3] OK, Kill me if this can;t be done, but:"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] PHP3 and LDAP"
- Reply: Rasmus Lerdorf: "Re: [PHP3] PHP3 and LDAP"
- Maybe reply: Nick Talbott: "Re: [PHP3] PHP3 and LDAP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I've got a little script that uses some information from our LDAP server
(basically just looks up names). The problem is that if the ldap_search() or
ldap_list() call returns more than a few entries, everything core dumps. This
doesn't happen every time, but most of the time---sometimes it runs just file.
I'm running PHP (3.0.1) as an Apache (1.3) module, and Apache says:
[Tue Jul 14 16:30:42 1998] [notice] httpd: child pid 2296 exit signal Segmentation Fault (11)
when this happens. The LDAP Server (Netscape 3.1) logs show the connection,
the search and the result (in this case, 61 entries). Then the client abruptly
disconnects (when Apache segfaults).
This is the code, the segfault is happening in the ldap_list call.
$ldap = ldap_connect("our.ldap.server");
ldap_bind($ldap);
$result = ldap_list($ldap,"ou=People,o=canis","(objectClass=Person)");
Since this works fine if I use a filter that returns a small number of entries,
I'm assuming this is a buffer problem somewhere. Any ideas?
thanks,
b
-- % Baba Z Buehler - 'Hackito Ergo Sum' % Digital Library Initiative/NCSA, University of Illinois % % "I just can't find the time to write % my mind the way I want it to read." -- Wilco % % PGP public key on WWW homepage and key servers (key id: C13D8EE1) % WWW: http://www.uiuc.edu/ph/www/baba/-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.tryc.on.ca/php3.html
- Next message: Chad Cunningham: "[PHP3] conditional operators"
- Previous message: Zeev Suraski: "RE: [PHP3] OK, Kill me if this can;t be done, but:"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] PHP3 and LDAP"
- Reply: Rasmus Lerdorf: "Re: [PHP3] PHP3 and LDAP"
- Maybe reply: Nick Talbott: "Re: [PHP3] PHP3 and LDAP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

