Date: 02/10/03
- Next message: mstack <email protected>: "[PHP-DOC] #22150 [NEW]: Tilde Equals '~=' operator does not exist."
- Previous message: reven: "RE: [PHP-DOC] Trying to create a PDF manual"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 15637
Updated by: sniper <email protected>
Reported By: cjm46543 <email protected>
-Status: Open
+Status: Analyzed
-Bug Type: LDAP related
+Bug Type: Documentation problem
Operating System: Linux - RedHat 7.2
PHP Version: 4.4.0-dev
New Comment:
When openldap 2.x is used, the ldap_connect() does not actually
connect, it just initializes the connecting parameters. The actual
connect happens with next calls
to ldap_* funcs, usually it is 'ldap_bind()'.
This is just documentation problem. Not any bug in code.
Previous Comments:
------------------------------------------------------------------------
[2003-01-24 19:51:01] philip <email protected>
Yes, I still get ldap resources everytime except when passing in "/" or
a wrong parameter count.
------------------------------------------------------------------------
[2003-01-20 16:12:25] iliaa <email protected>
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
With latest CVS it returns FALSE when appropriate, cannot replicate the
problem.
------------------------------------------------------------------------
[2003-01-17 22:26:57] philip <email protected>
I cannot get ldap_connect() to return false under ANY conditions,
including with the examples provided in this bug report. I find this
behavior impossible to document, please have another look at this.
Reclassifying -> ldap related.
Shouldn't these return false? They are not URI's:
var_dump(ldap_connect('foo'));
var_dump(ldap_connect('does.not.exist'));
I get resources with both. apache1.3.26/php4.4/openldap2.0.23
------------------------------------------------------------------------
[2003-01-06 11:28:38] martin <email protected>
when using an ip address ldap_connect doesn't work as described.
$server = "10.1.1.100";
$port = "389";
$ds = ldap_connect($server, $port);
the result is true even if the server does not exist or the service is
not running.
------------------------------------------------------------------------
[2002-12-27 16:27:34] W.Regenczuk <email protected>
I have observed something like this (in php-4.30rc3):
The whole script:
<?
$ldaphost = "nonexistendserver";
$ldapport = 389;
$ldapconn = ldap_connect( $ldaphost, $ldapport )
or die( "Could not connect to {$ldaphost}" );
echo $ldapconn; // display a valid ldap resource
?>
regards.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15637
-- Edit this bug report at http://bugs.php.net/?id=15637&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: mstack <email protected>: "[PHP-DOC] #22150 [NEW]: Tilde Equals '~=' operator does not exist."
- Previous message: reven: "RE: [PHP-DOC] Trying to create a PDF manual"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

