cvs: pear /DB_ldap ldap.php
| From: | Ludovico Magnocavallo | Date: | Tue, 22 Jan 2002 09:02:48 +0000 |
| Subject: | cvs: pear /DB_ldap ldap.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2049@lists.php.net to get a copy of this message | ||
ludoo Tue Jan 22 04:02:48 2002 EDT
Modified files:
/pear/DB_ldap ldap.php
Log:
free ldap query parameters on succesful query
Index: pear/DB_ldap/ldap.php
diff -u pear/DB_ldap/ldap.php:1.6 pear/DB_ldap/ldap.php:1.7
--- pear/DB_ldap/ldap.php:1.6 Mon Jan 21 03:32:00 2002
+++ pear/DB_ldap/ldap.php Tue Jan 22 04:02:47 2002
@@ -20,7 +20,7 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//
-// $Id: ldap.php,v 1.6 2002/01/21 08:32:00 ludoo Exp $
+// $Id: ldap.php,v 1.7 2002/01/22 09:02:47 ludoo Exp $
//
require_once 'DB/common.php';
@@ -478,6 +478,7 @@
return $this->raiseError();
}
}
+ $this->freeQuery();
return $result;
}
@@ -749,8 +750,8 @@
function base($base = null)
{
- $this->q_base = $base ? $base : null;
- return true;
+ $this->q_base = ($base !== null) ? $base : null;
+ return true;
}