php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #41017 LDAP_OPT_NETWORK_TIMEOUT not supported
Submitted: 2007-04-07 12:22 UTC Modified: 2007-10-06 01:47 UTC
From: philippe dot marasse at ac-poitiers dot fr Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.2.1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: philippe dot marasse at ac-poitiers dot fr
New email:
PHP Version: OS:

 

 [2007-04-07 12:22 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-06 01:47 UTC] jani@php.net
Added into PHP_5_3 branch. (will be available from 5.3.0 and above)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 12:01:30 2024 UTC