cvs: pear(NET_LDAP_0_6) /Net_LDAP/LDAP RootDSE.php Schema.php Search.php

From: Date: Tue, 01 Mar 2005 12:27:43 +0000
Subject: cvs: pear(NET_LDAP_0_6) /Net_LDAP/LDAP RootDSE.php Schema.php Search.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29946@lists.php.net to get a copy of this message
jw Tue Mar 1 07:27:43 2005 EDT Modified files: (Branch: NET_LDAP_0_6) /pear/Net_LDAP/LDAP RootDSE.php Schema.php Search.php Log: fix bug#2860 (call-time pass-by-reference) http://cvs.php.net/diff.php/pear/Net_LDAP/LDAP/RootDSE.php?r1=1.4.2.1&r2=1.4.2.2&ty=u Index: pear/Net_LDAP/LDAP/RootDSE.php diff -u pear/Net_LDAP/LDAP/RootDSE.php:1.4.2.1 pear/Net_LDAP/LDAP/RootDSE.php:1.4.2.2 --- pear/Net_LDAP/LDAP/RootDSE.php:1.4.2.1 Mon Mar 8 06:42:45 2004 +++ pear/Net_LDAP/LDAP/RootDSE.php Tue Mar 1 07:27:43 2005 @@ -22,14 +22,14 @@ // | Authors: Jan Wagner | // +--------------------------------------------------------------------------+ // -// $Id: RootDSE.php,v 1.4.2.1 2004/03/08 11:42:45 jw Exp $ +// $Id: RootDSE.php,v 1.4.2.2 2005/03/01 12:27:43 jw Exp $ /** * Getting the rootDSE entry of a LDAP server * * @package Net_LDAP * @author Jan Wagner <wagner@netsols.de> - * @version $Revision: 1.4.2.1 $ + * @version $Revision: 1.4.2.2 $ */ class Net_LDAP_RootDSE extends PEAR { @@ -73,7 +73,7 @@ function get_value() { $args = func_get_args(); - return call_user_func_array(array( &$this, 'getValue' ), $args); + return call_user_func_array(array($this, 'getValue' ), $args); } /** @@ -96,7 +96,7 @@ function supported_extension() { $args = func_get_args(); - return call_user_func_array(array( &$this, 'supportedExtension'), $args); + return call_user_func_array(array($this, 'supportedExtension'), $args); } /** @@ -119,7 +119,7 @@ function supported_version() { $args = func_get_args(); - return call_user_func_array(array(&$this, 'supportedVersion'), $args); + return call_user_func_array(array($this, 'supportedVersion'), $args); } /** @@ -142,7 +142,7 @@ function supported_control() { $args = func_get_args(); - return call_user_func_array(array(&$this, 'supportedControl' ), $args); + return call_user_func_array(array($this, 'supportedControl' ), $args); } /** @@ -165,7 +165,7 @@ function supported_sasl_mechanism() { $args = func_get_args(); - return call_user_func_array(array(&$this, 'supportedSASLMechanism'), $args); + return call_user_func_array(array($this, 'supportedSASLMechanism'), $args); } /** http://cvs.php.net/diff.php/pear/Net_LDAP/LDAP/Schema.php?r1=1.7.2.1&r2=1.7.2.2&ty=u Index: pear/Net_LDAP/LDAP/Schema.php diff -u pear/Net_LDAP/LDAP/Schema.php:1.7.2.1 pear/Net_LDAP/LDAP/Schema.php:1.7.2.2 --- pear/Net_LDAP/LDAP/Schema.php:1.7.2.1 Mon Mar 8 06:42:45 2004 +++ pear/Net_LDAP/LDAP/Schema.php Tue Mar 1 07:27:43 2005 @@ -22,7 +22,7 @@ // | Authors: Jan Wagner | // +--------------------------------------------------------------------------+ // -// $Id: Schema.php,v 1.7.2.1 2004/03/08 11:42:45 jw Exp $ +// $Id: Schema.php,v 1.7.2.2 2005/03/01 12:27:43 jw Exp $ /** * Load an LDAP Schema and provide information @@ -34,7 +34,7 @@ * * @package Net_LDAP * @author Jan Wagner <wagner@netsols.de> - * @version $Revision: 1.7.2.1 $ + * @version $Revision: 1.7.2.2 $ */ class Net_LDAP_Schema extends PEAR { @@ -233,13 +233,13 @@ $schema_entry['type'] = $type; // save a ref in $_oids - $this->_oids[$schema_entry['oid']] = &$schema_entry; + $this->_oids[$schema_entry['oid']] =& $schema_entry; // save refs for all names in type map $names = $schema_entry['aliases']; array_push($names, $schema_entry['name']); foreach ($names as $name) { - $this->{$type_var}[strtolower($name)] = &$schema_entry; + $this->{$type_var}[strtolower($name)] =& $schema_entry; } } } http://cvs.php.net/diff.php/pear/Net_LDAP/LDAP/Search.php?r1=1.4.2.2&r2=1.4.2.3&ty=u Index: pear/Net_LDAP/LDAP/Search.php diff -u pear/Net_LDAP/LDAP/Search.php:1.4.2.2 pear/Net_LDAP/LDAP/Search.php:1.4.2.3 --- pear/Net_LDAP/LDAP/Search.php:1.4.2.2 Wed Mar 24 03:02:09 2004 +++ pear/Net_LDAP/LDAP/Search.php Tue Mar 1 07:27:43 2005 @@ -22,13 +22,13 @@ // | Authors: Tarjej Huse | // +--------------------------------------------------------------------------+ // -// $Id: Search.php,v 1.4.2.2 2004/03/24 08:02:09 jw Exp $ +// $Id: Search.php,v 1.4.2.3 2005/03/01 12:27:43 jw Exp $ /** * Result set of an LDAP search * * @author Tarjei Huse - * @version $Revision: 1.4.2.2 $ + * @version $Revision: 1.4.2.3 $ * @package Net_LDAP */ class Net_LDAP_Search extends PEAR @@ -104,13 +104,13 @@ } $this->_elink = @ldap_first_entry( $this->_link,$this->_search); - $entry = new Net_LDAP_Entry(&$this->_link, + $entry = new Net_LDAP_Entry($this->_link, @ldap_get_dn($this->_link, $this->_elink), @ldap_get_attributes($this->_link, $this->_elink)); array_push($this->_entries, $entry); while ($this->_elink = @ldap_next_entry($this->_link,$this->_elink)) { - $entry = new Net_LDAP_Entry(&$this->_link, + $entry = new Net_LDAP_Entry($this->_link, @ldap_get_dn($this->_link, $this->_elink), @ldap_get_attributes($this->_link, $this->_elink)); array_push($this->_entries, $entry); @@ -131,14 +131,14 @@ if (is_null($this->_elink)) { $this->_elink = @ldap_first_entry($this->_link, $this->_search); - $entry = new Net_LDAP_Entry(&$this->_link, + $entry = new Net_LDAP_Entry($this->_link, ldap_get_dn($this->_link, $this->_elink), ldap_get_attributes($this->_link, $this->_elink)); } else { if (!$this->_elink = ldap_next_entry($this->_link, $this->_elink)) { return false; } - $entry = new Net_LDAP_Entry(&$this->_link, + $entry = new Net_LDAP_Entry($this->_link, ldap_get_dn($this->_link,$this->_elink), ldap_get_attributes($this->_link,$this->_elink)); } @@ -153,7 +153,7 @@ function shift_entry() { $args = func_get_args(); - return call_user_func_array(array( &$this, 'shiftEntry' ), $args); + return call_user_func_array(array($this, 'shiftEntry'), $args); } /**

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