#41017 [Opn->Csd]: LDAP_OPT_NETWORK_TIMEOUT not supported
| From: | jani@php.net | Date: | Sat, 06 Oct 2007 01:47:49 +0000 |
| Subject: | #41017 [Opn->Csd]: LDAP_OPT_NETWORK_TIMEOUT not supported | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118244@lists.php.net to get a copy of this message | ||
ID: 41017
Updated by: jani@php.net
Reported By: philippe dot marasse at ac-poitiers dot fr
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 5.2.1
New Comment:
Added into PHP_5_3 branch. (will be available from 5.3.0 and above)
Previous Comments:
------------------------------------------------------------------------
[2007-04-07 12:22:13] philippe dot marasse at ac-poitiers dot fr
Description:
------------
This is related to bug #25847 which is still open.
openLdap client library has a useful option : LDAP_OPT_NETWORK_TIMEOUT,
which can be used to cancel a connect attempt if the ldap server is down
or does not answer.
This option is not yet implemented in PHP 5.2.1 so I wrote this little
patch :
http://admin.vienneinfo.org/files/ldap.c-network-timeout-5.2.1.patch
I don't know if it's the best way to get this option implemented in PHP
but it works for me.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41017&edit=1