ID: 40647
User updated by: csi92 at yahoo dot com
Reported By: csi92 at yahoo dot com
-Status: Feedback
+Status: Open
Bug Type: LDAP related
Operating System: Red Hat Enterprise Linux AS rele
PHP Version: 4.4.5
New Comment:
When I restart Apache via .apachectl restart I get the following in the
Apache error log:
[Mon Feb 26 12:26:08 2007] [notice] SIGHUP received. Attempting to
restart
[Mon Feb 26 12:26:10 2007] [warn] RSA server certificate CommonName
(CN) `viplabser14.intranet.XXXXXX.com' does NOT match server name!?
[Mon Feb 26 12:26:11 2007] [notice] Apache configured -- resuming
normal operations
When I then execute the code in a browser, I get the following notice
in the Apache error log:
[Mon Feb 26 12:26:26 2007] [notice] child pid 28463 exit signal
Segmentation fault (11)
Previous Comments:
------------------------------------------------------------------------
[2007-02-26 18:22:53] [EMAIL PROTECTED]
Check your error_log.
------------------------------------------------------------------------
[2007-02-26 18:10:41] csi92 at yahoo dot com
Description:
------------
I am connecting to an iPlanet LDAP. After starting Apache via
./apachectl start, the ldap_connect() function works fine.
If I stop and start Apache via ./apachectl stop, ./apachectl start, the
ldap_connect function works fine.
If I restart Apache via ./apachectl restart OR ./apachectl graceful,
the ldap_connect function fails and the page is blank. The page source
is blank. With error reporting -- ini_set('error_reporting', E_ALL); --
No errors are reported.
If I stop/start Apache again via ./apachectl stop, ./apachectl start,
the ldap_connect function works fine again.
Reproduce code:
---------------
<?php
ini_set('error_reporting', E_ALL);
$ds=ldap_connect("directory.fedex.com"); // prepare to connect to
ldap
if ($ds) {
echo "<p>LDAP Connection Successful<p>";
$r=ldap_bind($ds); // this is an "anonymous" bind
$sr=ldap_search($ds, "o=fedex, c=US", "uid=322049"); // Search for
"ovis" UID
$info = ldap_get_entries($ds, $sr); // Get entries
ldap_close($ds); // Close connection
}else{
echo "<h4>Unable to connect to LDAP server</h4>";
}
?>
Expected result:
----------------
LDAP Connection Successful
Actual result:
--------------
When I stop and start Apache using ./apachectl stop and then
./apachectl startssl I get "LDAP Connection Successful".
When us stop and start Apache using either ./apachectl restart or
./apachectl graceful I get a blank page. When I view source, it is
blank also.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40647&edit=1