cvs: pear(NET_LDAP_0_6) /Net_LDAP LDAP.php
| From: | Tarjei Huse | Date: | Wed, 07 Jul 2004 19:30:21 +0000 |
| Subject: | cvs: pear(NET_LDAP_0_6) /Net_LDAP LDAP.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-21611@lists.php.net to get a copy of this message | ||
tarjei Wed Jul 7 15:30:21 2004 EDT
Modified files: (Branch: NET_LDAP_0_6)
/pear/Net_LDAP LDAP.php
Log:
Small fix, the constructor should not return anything. Thanks to Mike Wallner for pointing this
out.
http://cvs.php.net/diff.php/pear/Net_LDAP/LDAP.php?r1=1.19.2.3&r2=1.19.2.4&ty=u
Index: pear/Net_LDAP/LDAP.php
diff -u pear/Net_LDAP/LDAP.php:1.19.2.3 pear/Net_LDAP/LDAP.php:1.19.2.4
--- pear/Net_LDAP/LDAP.php:1.19.2.3 Wed Jul 7 15:04:55 2004
+++ pear/Net_LDAP/LDAP.php Wed Jul 7 15:30:20 2004
@@ -23,7 +23,7 @@
// | Jan Wagner |
// +--------------------------------------------------------------------------+
//
-// $Id: LDAP.php,v 1.19.2.3 2004/07/07 19:04:55 tarjei Exp $
+// $Id: LDAP.php,v 1.19.2.4 2004/07/07 19:30:20 tarjei Exp $
require_once('PEAR.php');
require_once('LDAP/Entry.php');
@@ -34,7 +34,7 @@
*
* @author Tarjei Huse
* @author Jan Wagner
- * @version $Revision: 1.19.2.3 $
+ * @version $Revision: 1.19.2.4 $
* @package Net_LDAP
*/
class Net_LDAP extends PEAR
@@ -102,9 +102,6 @@
*/
function Net_LDAP($_config = array())
{
- if (!function_exists('ldap_connect')){
- return $this->raiseError("It seems that you do not have the ldap-extension
installed. Please install it before using this package.");
- }
foreach ($_config as $k => $v) {
$this->_config[$k] = $v;
}
@@ -123,6 +120,9 @@
*/
function &connect($config = array())
{
+ if (!function_exists('ldap_connect')){
+ return $this->raiseError("It seems that you do not have the ldap-extension
installed. Please install it before using this package.");
+ }
@$obj = & new Net_LDAP($config);
$err = $obj->bind();