note 59749 rejected from functions.returning-values by nlopess
| From: | nlopess@php.net | Date: | Wed, 14 Dec 2005 23:46:51 +0000 |
| Subject: | note 59749 rejected from functions.returning-values by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100168@lists.php.net to get a copy of this message | ||
Note Submitter: sharaaz2001 at yahoo dot com
----
I cannot figure out why I am getting an error when I try to return the variable reference
"$false" in this function. Here is the code:
function &FetchRow()
{
if ($this->EOF) {
$false = false;
return $false; //line 2797
}
$arr = $this->fields;
$this->_currentRow++;
if (!$this->_fetch()) $this->EOF = true;
return $arr;
}
Here is the error in the file that this code belongs:
Notice: Only variable references should be returned by reference in
/home/iecrccom/public_html/mirrormed/cellini/lib/adodb/adodb.inc.php on line 2797
Please help.
Sharaaz