4.4.0, because tries to return array(). Use of references can't be explained.
Main backend class and file/ldap backends don't use refencences. If it is
used for some reason, other lookup() should have to use references too.
I suspect that reason is performance or it is relict from some different code.
PHP manual says that developers should not use references in order to increase
performance.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9925
7612ce4b-ef26-0410-bec9-
ea0150e637f0
* @param string $expr search expression
* @return array search results
*/
- function &search($expr) {
+ function search($expr) {
$ret = array();
if(!$this->open()) {
return false;
* @param string $alias alias
* @return array search results
*/
- function &lookup($alias) {
+ function lookup($alias) {
if (empty($alias)) {
return array();
}
* List all addresses
* @return array search results
*/
- function &list_addr() {
+ function list_addr() {
$ret = array();
if (!$this->open()) {
return false;