#21214 [Bgs]: ldap_connect returns LDAP link identifier on error.
| From: | philip@php.net | Date: | Fri, 27 Dec 2002 17:13:44 +0000 |
| Subject: | #21214 [Bgs]: ldap_connect returns LDAP link identifier on error. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28483@lists.php.net to get a copy of this message | ||
ID: 21214
Updated by: philip@php.net
Reported By: W.Regenczuk@adbglobal.com
Status: Bogus
Bug Type: LDAP related
Operating System: RedHat 8
PHP Version: 4.3.0
New Comment:
See: http://bugs.php.net/bug.php?id=15637
Previous Comments:
------------------------------------------------------------------------
[2002-12-27 11:04:51] 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.
------------------------------------------------------------------------
[2002-12-27 10:58:38] W.Regenczuk@adbglobal.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???
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21214&edit=1