cvs: pear /Net_LDAP/LDAP Entry.php Schema.php Search.php

From: Date: Mon, 23 Apr 2007 08:11:10 +0000
Subject: cvs: pear /Net_LDAP/LDAP Entry.php Schema.php Search.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-46111@lists.php.net to get a copy of this message
beni Mon Apr 23 08:11:10 2007 UTC Modified files: /pear/Net_LDAP/LDAP Entry.php Schema.php Search.php Log: * Fixed bug #10648 (Error Notice when searching), this was a issue with php5 compatibility http://cvs.php.net/viewvc.cgi/pear/Net_LDAP/LDAP/Entry.php?r1=1.35&r2=1.36&diff_format=u Index: pear/Net_LDAP/LDAP/Entry.php diff -u pear/Net_LDAP/LDAP/Entry.php:1.35 pear/Net_LDAP/LDAP/Entry.php:1.36 --- pear/Net_LDAP/LDAP/Entry.php:1.35 Thu Apr 12 11:22:24 2007 +++ pear/Net_LDAP/LDAP/Entry.php Mon Apr 23 08:11:09 2007 @@ -22,7 +22,7 @@ // | Authors: Jan Wagner, Tarjej Huse | // +--------------------------------------------------------------------------+ // -// $Id: Entry.php,v 1.35 2007/04/12 11:22:24 beni Exp $ +// $Id: Entry.php,v 1.36 2007/04/23 08:11:09 beni Exp $ require_once("PEAR.php"); require_once('Util.php'); @@ -36,7 +36,7 @@ * @package Net_LDAP * @author Jan Wagner <wagner@netsols.de> * @author Tarjej Huse - * @version $Revision: 1.35 $ + * @version $Revision: 1.36 $ */ class Net_LDAP_Entry extends PEAR @@ -194,7 +194,8 @@ } else { $this->_newdn = $dn; } - return true; + $return = true; + return $return; } return (isset($this->_newdn) ? $this->_newdn : $this->_dn); } http://cvs.php.net/viewvc.cgi/pear/Net_LDAP/LDAP/Schema.php?r1=1.13&r2=1.14&diff_format=u Index: pear/Net_LDAP/LDAP/Schema.php diff -u pear/Net_LDAP/LDAP/Schema.php:1.13 pear/Net_LDAP/LDAP/Schema.php:1.14 --- pear/Net_LDAP/LDAP/Schema.php:1.13 Fri Mar 16 12:06:17 2007 +++ pear/Net_LDAP/LDAP/Schema.php Mon Apr 23 08:11:09 2007 @@ -22,7 +22,7 @@ // | Authors: Jan Wagner | // +--------------------------------------------------------------------------+ // -// $Id: Schema.php,v 1.13 2007/03/16 12:06:17 beni Exp $ +// $Id: Schema.php,v 1.14 2007/04/23 08:11:09 beni Exp $ /** * Syntax definitions @@ -49,7 +49,7 @@ * * @package Net_LDAP * @author Jan Wagner <wagner@netsols.de> - * @version $Revision: 1.13 $ + * @version $Revision: 1.14 $ */ class Net_LDAP_Schema extends PEAR { @@ -387,12 +387,14 @@ NET_LDAP_SYNTAX_JPEG ); - // Check Syntax (defined in Net_LDAP_Schema) + // Check Syntax $attr_s = $this->get('attribute', $attribute); - if (false === Net_LDAP::isError($attr_s) && in_array($attr_s['syntax'], $syntax_binary)) { - return true; + if (false === Net_LDAP::isError($attr_s) && isset($attr_s['syntax']) && in_array($attr_s['syntax'], $syntax_binary)) { + $return = true; + return $return; } else { - return false; + $return = false; + return $return; } } } http://cvs.php.net/viewvc.cgi/pear/Net_LDAP/LDAP/Search.php?r1=1.18&r2=1.19&diff_format=u Index: pear/Net_LDAP/LDAP/Search.php diff -u pear/Net_LDAP/LDAP/Search.php:1.18 pear/Net_LDAP/LDAP/Search.php:1.19 --- pear/Net_LDAP/LDAP/Search.php:1.18 Mon Feb 26 08:07:54 2007 +++ pear/Net_LDAP/LDAP/Search.php Mon Apr 23 08:11:09 2007 @@ -22,14 +22,14 @@ // | Authors: Tarjej Huse, Benedikt Hallinger | // +--------------------------------------------------------------------------+ // -// $Id: Search.php,v 1.18 2007/02/26 08:07:54 beni Exp $ +// $Id: Search.php,v 1.19 2007/04/23 08:11:09 beni Exp $ /** * Result set of an LDAP search * * @author Tarjei Huse * @author Benedikt Hallinger <beni@php.net> - * @version $Revision: 1.18 $ + * @version $Revision: 1.19 $ * @package Net_LDAP */ class Net_LDAP_Search extends PEAR @@ -149,7 +149,8 @@ function &shiftEntry() { if ($this->count() == 0 ) { - return false; + $false = false; + return $false; } if (is_null($this->_entry)) { @@ -157,7 +158,8 @@ $entry = new Net_LDAP_Entry($this->_ldap, $this->_entry); } else { if (!$this->_entry = @ldap_next_entry($this->_link, $this->_entry)) { - return false; + $false = false; + return $false; } $entry = new Net_LDAP_Entry($this->_ldap, $this->_entry); }

« previous php.pear.cvs (#46111) next »