|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-02-26 18:10 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 22:00:01 2025 UTC |
(gdb) bt #0 0x04bcf104 in ?? () #1 0x06046e48 in nzdst_terminate () from /usr/lib/oracle/10.2.0.3/client/lib/libnnz10.so #2 0x06046b48 in nzdsi_initialize () from /usr/lib/oracle/10.2.0.3/client/lib/libnnz10.so #3 0x03af45c1 in gsluinit () from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1 #4 0x03af4920 in gsluizgcGetContext () from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1 #5 0x03af84e3 in gslutcTraceWithCtx () from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1 #6 0x03ac4520 in ldap_init () from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1 #7 0x0108ac16 in zif_ldap_connect (ht=1, return_value=0xb73c752c, this_ptr=0x0, return_value_used=1) at /opt/12345/software/php-4.4.5/ext/ldap/ldap.c:389 #8 0x0118a192 in execute (op_array=0xb73c283c) at /opt/12345/software/php-4.4.5/Zend/zend_execute.c:1681 #9 0x0117803d in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /opt/12345/software/php-4.4.5/Zend/zend.c:935 #10 0x011464ed in php_execute_script (primary_file=0xbfffc570) at /opt/12345/software/php-4.4.5/main/main.c:1757 #11 0x0118ff99 in php_handler (r=0xb72f7c50) at /opt/12345/software/php-4.4.5/sapi/apache2handler/sapi_apache2.c:581 ---Type <return> to continue, or q <return> to quit--- #12 0x08088b7b in ap_run_handler () #13 0xb72f8ff8 in ?? () #14 0x00000000 in ?? () (gdb)(gdb) frame 8 #8 0x0118a192 in execute (op_array=0xb73c283c) at /opt/12345/software/php-4.4.5/Zend/zend_execute.c:1681 1681 ((zend_internal_function *) EX(function_state).function)->handler(EX(opline)->extended_value, EX(Ts)[EX(opline)->result.u.var].var.ptr, EX(object).ptr, return_value_used TSRMLS_CC); (gdb)Sure. Just look at your backtrace, everything there points to the Oracle Instant Client. #0 0x04bcf104 in ?? () #1 0x06046e48 in nzdst_terminate () from /usr/lib/oracle/10.2.0.3/client/lib/libnnz10.so #2 0x06046b48 in nzdsi_initialize () from /usr/lib/oracle/10.2.0.3/client/lib/libnnz10.so #3 0x03af45c1 in gsluinit () from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1 #4 0x03af4920 in gsluizgcGetContext () from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1 #5 0x03af84e3 in gslutcTraceWithCtx () from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1 #6 0x03ac4520 in ldap_init () from /usr/lib/oracle/10.2.0.3/client/lib/libclntsh.so.10.1 #7 0x0108ac16 in zif_ldap_connect (ht=1, return_value=0xb73c752c, this_ptr=0x0, return_value_used=1)