php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20713 ldap_connect doesn't return FALSE
Submitted: 2002-11-29 02:45 UTC Modified: 2002-11-29 09:09 UTC
From: f dot labanvoye at cg70 dot fr Assigned:
Status: Not a bug Package: LDAP related
PHP Version: 4.3.0RC2 OS: windows and linux
Private report: No CVE-ID: None
 [2002-11-29 02:45 UTC] f dot labanvoye at cg70 dot fr
Hello,

when i call the ldap_connect without any param, i don't get FALSE.

<?php

$ds = ldap_connect ( );
echo $ds; // --> i get ressource id #2
?>

But the connection is not possible.

Thanks

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-29 06:25 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.
 [2002-11-29 07:04 UTC] f dot labanvoye at cg70 dot fr
Soorry, but i don't ask support for PHP. I think your answer don't help user to love people, because you don't take care about bug submitted. I spent time to test PHP when i see strange bahaviour of PHP

so for my problem, the documention is (on zend site) for ldap_connect:

ldap_connect() establishes a connection to a LDAP server on a specified hostname and port. Both the arguments are optional. --> If no arguments are specified then the link identifier of the already opened link will be returned. 

In my script i don't have any previous opened link, so i think the function would return FALSE. 
Or the documention is wrong and need correction.

Sincerely
 [2002-11-29 08:32 UTC] sniper@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.


http://bugs.php.net/bug.php?id=15637

 [2002-11-29 09:09 UTC] f dot labanvoye at cg70 dot fr
Thanks for your answer. 
I prefer the last answer (which is more clear) than the first.

I add a comment to the bug 15637
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC