$dbh =3D &$this->_connect();
will be a problem on newer php's.
If it should be a reference, it should be declared in the function definiti=
beforehand, and not later in the call.
Why it's there and why somewhere else I forgot? I'll think of it.
dbh should be a ref and not a copy, esp. for ADODB which is quite heavy.
2005/11/3, Stefan <sonstiges@...>:
> >Line 97 looks like this:
> > $dbh =3D &$this->_connect();
> >The reference is created by the ampersand. For the moment, it's unclear =
> >me what purpose the reference here is serving. Hence my question for Rei=
> >Reini: I noticed that in the DbSession code that the db handles are acqu=
> >from _connect() using a mix of references and straight assignment (SQL.p=
> >and ADODB.php use references only, dba.php uses assignment only, and PDO=
> >uses a mix of the two). Is there a reason why these aren't uniform? I.e.=
> >do any of them actually need to be references? (I don't think so, but I
> >could be wrong.)