Posted by Vince Morgan on 05/07/07 09:38
"gosha bine" <stereofrog@gmail.com> wrote in message
news:463ee9be$0$2889$6e1ede2f@read.cnntp.org...
> Vince Morgan wrote:
> > I guess I don't understand how references work in php;
> > Calling a class member function below as an example;
> > function &getRow()
> > {
> > return odbc_fetch_array($this->_det);
> > }
> > I would expect that I should end up with nothing as there is nothing to
> > actualy reference.
>
> Are you debugging with E_ALL? This actually should throw a notice ("only
> variables can be returned by ref" or similar).
Yes Gosha. No warning or notice however.
Vince
Navigation:
[Reply to this message]
|