php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21214 ldap_connect returns LDAP link identifier on error.
Submitted: 2002-12-27 10:58 UTC Modified: 2002-12-27 11:13 UTC
From: W dot Regenczuk at adbglobal dot com Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 4.3.0 OS: RedHat 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
50 - 26 = ?
Subscribe to this entry?

 
 [2002-12-27 10:58 UTC] W dot Regenczuk at adbglobal dot com
ldap_connect returns LDAP link identifier on error
 The source:
// LDAP variables
$ldaphost = "nonexistendserver";  // your ldap servers
$ldapport = 389;                 // your ldap server's port number

// Connecting to LDAP
$ldapconn = ldap_connect( $ldaphost, $ldapport ) 
          or die( "Could not connect to {$ldaphost}" );
echo $ldapconn;

returns sth like this:

Resource id #11 

Any ideas???

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-27 11:04 UTC] derick@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 05:01:28 2024 UTC