From:             csi92 at yahoo dot com
Operating system: Red Hat Enterprise Linux AS rele
PHP version:      4.4.5
PHP Bug Type:     LDAP related
Bug description:  ldap_connect() fails when restarting Apache 2.0.55 via 
restart or graceful

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 bug report at http://bugs.php.net/?id=40647&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40647&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40647&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40647&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40647&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40647&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40647&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40647&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40647&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40647&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40647&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40647&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40647&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40647&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40647&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40647&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40647&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40647&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40647&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40647&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40647&r=mysqlcfg

Reply via email to