Home » Networking » Net_LDAP » Bug #4751
Cannot Net_LDAP::connect
Details
| Submitted | 2005-07-05 18:22 UTC |
|---|---|
| From | ritprez at gmail dot com |
| Assigned | delatbabel |
| Status | Closed |
| Package | Net_LDAP |
| PHP Version | 5.0.4 |
| OS | FreeBSD 5.3 Security |
| Roadmaps | (Not assigned) |
Comments
[2005-07-05 18:22 UTC] ritprez at gmail dot com
Description:
------------
When trying to connect:
[05-Jul-2005 13:59:50] PHP Fatal error: Using $this when not in object context in /usr/local/lib/php/pear/Net/LDAP.php on line 143
Reproduce code:
---------------
<?php
require_once ('/usr/local/lib/php/pear/Net/LDAP.php');
$params = array (
'dn' => 'uid=******,ou=People,dc=rit,dc=edu',
'host' => 'ldap.rit.edu',
'password' => '***********',
'base' => 'ou=People,dc=rit,dc=edu',
'tls' => true);
$ldap = Net_Ldap::connect( $params );
if (PEAR::isError( $ldap )) die($ldap->getMessage());
?>
Expected result:
----------------
succesfull connect.
Actual result:
--------------
[05-Jul-2005 13:59:50] PHP Fatal error: Using $this when not in object context in /usr/local/lib/php/pear/Net/LDAP.php on line 143
[2006-02-24 01:48 UTC] delatbabel at php dot net
Confirmed via test case that this is fixed in the latest CVS version. Will close after the next commit.
[2006-02-24 03:41 UTC] delatbabel at php dot net
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.